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)
To instance.
|
<T> Set<T> |
toInstances(Class<?> aType)
To instances.
|
toInstances
toInstance
<T> T toInstance(ID aIdentifier)
toInstance
in interface BeanLookupFactory<ID>
T
- the generic typeaIdentifier
- the a identifier<T> Set<T> toInstances(Class<?> aType)
toInstances
in interface TypeLookupFactory
T
- the generic typeaType
- the a typeCopyright © 2017. All rights reserved.