M
- the model class that shall be created by this factorypublic class NoArgDataModelFactory<M extends DataModel> extends Object implements DataModelFactory<M>
Constructor and Description |
---|
NoArgDataModelFactory(Class<M> modelClass)
Creates a new instance of this class.
|
public NoArgDataModelFactory(Class<M> modelClass) throws IllegalArgumentException, SecurityException
modelClass
- IllegalArgumentException
- if the specified class does not offer a public constructor with
no argumentsSecurityException
- 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>