TID
- The type of the IDto be used when looking up an instance.BeanLookupFactory<TID>
, TypeLookupFactory
public interface BeanFactory<TID> extends TypeLookupFactory, BeanLookupFactory<TID>
Modifier and Type | Method | Description |
---|---|---|
<T> T |
createInstance(TID 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.
|
createInstance
toInstances
<T> T createInstance(TID aIdentifier)
createInstance
in interface BeanLookupFactory<TID>
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 © 2021. All rights reserved.