- Type Parameters:
TID
- The type of the IDto be used when looking up an instance.
- All Superinterfaces:
BeanLookupFactory<TID>
,TypeLookupFactory
A lookup factory supporting type and TID lookup.
-
Method Summary
Methods inherited from interface org.refcodes.factory.BeanLookupFactory
create
Methods inherited from interface org.refcodes.factory.TypeLookupFactory
toInstances
-
Method Details
-
create
This method creates / retrieves an instance of the given type identified with the given identifier (name).- Specified by:
create
in interfaceBeanLookupFactory<TID>
- Type Parameters:
T
- The type which is to be fabricated by the factory method.- Parameters:
aIdentifier
- The name identifying the instance to be created / retrieved.- Returns:
- The instance being fabricated by this factory of the required type for the given instance name (identifier).
-
create
This method creates / retrieves an all instances of the given type.- Specified by:
create
in interfaceTypeLookupFactory
- Type Parameters:
T
- The type which is to be fabricated by the factory method.- Parameters:
aType
- The type identifying the instances to be created / retrieved.- Returns:
- A set with all instance of the required type for the given type.
-