@Version("1.4.2")
Package org.apache.sling.models.factory
-
Interface Summary Interface Description ModelFactory The ModelFactory instantiates Sling Model classes similar to #adaptTo but will throw an exception in case instantiation fails for some reason. -
Exception Summary Exception Description ExportException InvalidAdaptableException Exception which is triggered whenever a Sling Model could not be instantiated because it could not be adapted from the given adaptable.InvalidModelException Thrown in case the given model type could not be validated through the model validation.MissingElementException Exception which is used whenever one element (field, method or constructor) could not be set.MissingElementsException Exception which is triggered whenever a Sling Model cannot be instantiated due to some missing elements (i.e.MissingExporterException ModelClassException Exception which is triggered when the Model class could not be instantiated due to not having a model annotation, some reflection error, invalid constructors or because some exception within the post construct method was triggered.PostConstructException Exception which is triggered, whenever the post-construct method has thrown an exception.ValidationException Thrown in case an validation could not be performed for the given model.