public interface Factory
Modifier and Type | Method and Description |
---|---|
void |
clean()
Clean the factory.
|
<T extends FactoryManaged> |
get(Class<T> klass)
Get an instance of the interface.
|
<T extends FactoryManaged> T get(Class<T> klass)
klass
- the interface. It is an error to pass a class that is not an
interface. In that case the implementation may throw BasicInterpreterInternalError
.void clean()
When the factory creates thread singletons (thread local instances) then this is important to call this method to release the objects before the thread finishes.
Copyright © 2013 Verhas and Verhas Software Craftsmen. All Rights Reserved.