Package javax.cache.configuration
Interface Factory<T>
-
- Type Parameters:
T
- the type of factory constructed
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
FactoryBuilder.ClassFactory
,FactoryBuilder.SingletonFactory
public interface Factory<T> extends java.io.Serializable
Constructs and returns a fully configured instance of a specific factory type.Implementations may choose not to construct a new instance, but instead return a previously created instance.
Implementations must correctly implement
Object.equals(Object)
andObject.hashCode()
asFactory
s are often compared with each other for equivalence.- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
create()
Constructs and returns a fully configured instance of T.
-
-
-
Method Detail
-
create
T create()
Constructs and returns a fully configured instance of T.- Returns:
- an instance of T.
-
-