ID - The type of the IDto be used when looking up an instance.public interface BeanFactory<ID> extends TypeLookupFactory, BeanLookupFactory<ID>
| Modifier and Type | Method and Description |
|---|---|
<T> T |
toInstance(ID aIdentifier)
This method creates / retrieves an instance of the given type identified
with the given identifier (name).
|
<T> Set<T> |
toInstances(Class<?> aType)
This method creates / retrieves an all instances of the given type.
|
toInstancestoInstance<T> T toInstance(ID aIdentifier)
BeanLookupFactorytoInstance in interface BeanLookupFactory<ID>T - The type which is to be fabricated by the factory method.aIdentifier - The name identifying the instance to be created /
retrieved.<T> Set<T> toInstances(Class<?> aType)
TypeLookupFactorytoInstances in interface TypeLookupFactoryT - The type which is to be fabricated by the factory method.aType - The type identifying the instances to be created /
retrieved.Copyright © 2016. All rights reserved.