Package javax.cache.configuration
Class FactoryBuilder.ClassFactory<T>
- java.lang.Object
-
- javax.cache.configuration.FactoryBuilder.ClassFactory<T>
-
- Type Parameters:
T- the type of the instance produced by theFactory
- All Implemented Interfaces:
Serializable,Factory<T>
- Enclosing class:
- FactoryBuilder
public static class FactoryBuilder.ClassFactory<T> extends Object implements Factory<T>, Serializable
AFactorythat instantiates a specific Class.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static longserialVersionUIDThe serialVersionUID required forSerializable.
-
Constructor Summary
Constructors Constructor Description ClassFactory(Class<T> clazz)Constructor for theFactoryBuilder.ClassFactory.ClassFactory(String className)Constructor for theFactoryBuilder.ClassFactory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tcreate()Constructs and returns a fully configured instance of T.booleanequals(Object other)inthashCode()
-
-
-
Field Detail
-
serialVersionUID
public static final long serialVersionUID
The serialVersionUID required forSerializable.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ClassFactory
public ClassFactory(Class<T> clazz)
Constructor for theFactoryBuilder.ClassFactory.- Parameters:
clazz- the Class to instantiate
-
ClassFactory
public ClassFactory(String className)
Constructor for theFactoryBuilder.ClassFactory.- Parameters:
className- the name of the Class to instantiate
-
-