S
- subject class@Beta
public abstract class SubjectFactory<S>
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
SubjectFactory(java.lang.Class<S> subjectClass,
java.lang.String subjectClassKey)
Creates a new configuration factory for the specified class of subjects
capable of generating the configurations of the specified class.
|
Modifier and Type | Method and Description |
---|---|
abstract S |
createSubject(java.lang.String subjectKey)
Creates a configuration subject from its key image.
|
java.lang.Class<S> |
subjectClass()
Returns the class of the subject to which this factory applies.
|
java.lang.String |
subjectClassKey()
Returns the unique key of this configuration subject class.
|
java.lang.String |
subjectKey(S subject)
Returns the unique key of the specified configuration subject.
|
protected SubjectFactory(java.lang.Class<S> subjectClass, java.lang.String subjectClassKey)
subjectClass
- subject classsubjectClassKey
- subject class keypublic java.lang.Class<S> subjectClass()
public java.lang.String subjectClassKey()
public java.lang.String subjectKey(S subject)
subject
- specific subjectpublic abstract S createSubject(java.lang.String subjectKey)
subjectKey
- subject class key