Uses of Class
org.apache.sling.models.factory.ModelClassException
-
Uses of ModelClassException in org.apache.sling.models.factory
Modifier and TypeClassDescriptionclass
Exception which is triggered, whenever the post-construct method has thrown an exception.Modifier and TypeMethodDescription<ModelType>
ModelTypeModelFactory.createModel
(@NotNull Object adaptable, @NotNull Class<ModelType> type) Instantiates the given Sling Model class from the given adaptable.<T> T
ModelFactory.exportModelForRequest
(@NotNull SlingHttpServletRequest request, @NotNull String exporterName, @NotNull Class<T> targetClass, @NotNull Map<String, 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
(@NotNull Resource resource, @NotNull String exporterName, @NotNull Class<T> targetClass, @NotNull Map<String, String> options) Export the model object registered to the resource's type using the defined target class using the named exporter.@NotNull Object
ModelFactory.getModelFromRequest
(@NotNull SlingHttpServletRequest request) Obtain an adapted model class based on the resource type of the request's resource.@NotNull Object
ModelFactory.getModelFromResource
(@NotNull Resource resource) Obtain an adapted model class based on the resource type of the provided resource.