T - the type of the instance produced by the Factorypublic static class FactoryBuilder.ClassFactory<T> extends Object implements Factory<T>, Serializable
Factory that instantiates a specific Class.| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID
The serialVersionUID required for
Serializable. |
| Constructor and Description |
|---|
ClassFactory(Class<T> clazz)
Constructor for the
FactoryBuilder.ClassFactory. |
ClassFactory(String className)
Constructor for the
FactoryBuilder.ClassFactory. |
| Modifier and Type | Method and Description |
|---|---|
T |
create()
Constructs and returns a fully configured instance of T.
|
boolean |
equals(Object other) |
int |
hashCode() |
public static final long serialVersionUID
Serializable.public ClassFactory(Class<T> clazz)
FactoryBuilder.ClassFactory.clazz - the Class to instantiatepublic ClassFactory(String className)
FactoryBuilder.ClassFactory.className - the name of the Class to instantiateCopyright © 2019. All rights reserved.