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:
java.io.Serializable
,Factory<T>
- Enclosing class:
- FactoryBuilder
public static class FactoryBuilder.ClassFactory<T> extends java.lang.Object implements Factory<T>, java.io.Serializable
AFactory
that instantiates a specific Class.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
className
The name of the Class.static long
serialVersionUID
The serialVersionUID required forSerializable
.
-
Constructor Summary
Constructors Constructor Description ClassFactory(java.lang.Class<T> clazz)
Constructor for theFactoryBuilder.ClassFactory
.ClassFactory(java.lang.String className)
Constructor for theFactoryBuilder.ClassFactory
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
create()
Constructs and returns a fully configured instance of T.boolean
equals(java.lang.Object other)
int
hashCode()
-
-
-
Field Detail
-
serialVersionUID
public static final long serialVersionUID
The serialVersionUID required forSerializable
.- See Also:
- Constant Field Values
-
className
private java.lang.String className
The name of the Class.
-
-
Constructor Detail
-
ClassFactory
public ClassFactory(java.lang.Class<T> clazz)
Constructor for theFactoryBuilder.ClassFactory
.- Parameters:
clazz
- the Class to instantiate
-
ClassFactory
public ClassFactory(java.lang.String className)
Constructor for theFactoryBuilder.ClassFactory
.- Parameters:
className
- the name of the Class to instantiate
-
-
Method Detail
-
create
public T create()
Description copied from interface:Factory
Constructs and returns a fully configured instance of T.
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-