M
- the model class that shall be created by this factorypublic class NoArgDataModelFactory<M extends DataModel> extends java.lang.Object implements DataModelFactory<M>
Constructor and Description |
---|
NoArgDataModelFactory(java.lang.Class<M> modelClass)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
M |
createNewModel() |
public NoArgDataModelFactory(java.lang.Class<M> modelClass) throws java.lang.IllegalArgumentException, java.lang.SecurityException
modelClass
- java.lang.IllegalArgumentException
- if the specified class does not offer a public constructor with
no argumentsjava.lang.SecurityException
- If a security manager, s
, is present and the caller's class loader is not the same
as or an ancestor of the class loader for the current class and invocation of s.checkPackageAccess()
denies access to the package of this class.public M createNewModel()
createNewModel
in interface DataModelFactory<M extends DataModel>