public class SpiDataModelAdapter extends Object implements DataModelAdapter
DataModelAdapter
s as services
.Constructor and Description |
---|
SpiDataModelAdapter(ClassLoader serviceClassLoader)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
<T> DataModelDefinition<T> |
get(Class<T> modelClass)
Creates the
DataModelDefinition object from a data model class. |
public SpiDataModelAdapter(ClassLoader serviceClassLoader)
serviceClassLoader
- the class loader to load the registered servicesIllegalArgumentException
- if some parameters were null
public <T> DataModelDefinition<T> get(Class<T> modelClass)
DataModelAdapter
DataModelDefinition
object from a data model class.get
in interface DataModelAdapter
T
- type of data modelmodelClass
- a data model classnull
if not supportedCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.