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 |
createInstance(ID aIdentifier)
This method creates / retrieves an instance of the given type identified
with the given identifier (name).
|
<T> Set<T> |
createInstances(Class<?> aType)
This method creates / retrieves an all instances of the given type.
|
toInstances
createInstance
<T> T createInstance(ID aIdentifier)
createInstance
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> createInstances(Class<?> aType)
createInstances
in interface TypeLookupFactory
T
- The type which is to be fabricated by the factory method.aType
- The type identifying the instances to be created /
retrieved.Copyright © 2018. All rights reserved.