Package | Description |
---|---|
org.apache.sling.models.factory |
Modifier and Type | Class and Description |
---|---|
class |
PostConstructException
Exception which is triggered, whenever the post-construct method has thrown an exception.
|
Modifier and Type | Method and Description |
---|---|
<ModelType> |
ModelFactory.createModel(java.lang.Object adaptable,
java.lang.Class<ModelType> type)
Instantiates the given Sling Model class from the given adaptable.
|
<T> T |
ModelFactory.exportModelForRequest(SlingHttpServletRequest request,
java.lang.String exporterName,
java.lang.Class<T> targetClass,
java.util.Map<java.lang.String,java.lang.String> options)
Export the model object registered to the request's resource's type using the defined target class using the named exporter.
|
<T> T |
ModelFactory.exportModelForResource(Resource resource,
java.lang.String exporterName,
java.lang.Class<T> targetClass,
java.util.Map<java.lang.String,java.lang.String> options)
Export the model object registered to the resource's type using the defined target class using the named exporter.
|
java.lang.Object |
ModelFactory.getModelFromRequest(SlingHttpServletRequest request)
Obtain an adapted model class based on the resource type of the request's resource.
|
java.lang.Object |
ModelFactory.getModelFromResource(Resource resource)
Obtain an adapted model class based on the resource type of the provided resource.
|
Copyright © 2018 The Apache Software Foundation. All rights reserved.