# All Classes and Interfaces

Class
Description
AbstractInjectAnnotationProcessor
Deprecated.
Use `AbstractInjectAnnotationProcessor2` instead
AbstractInjectAnnotationProcessor2
Default implementation of `InjectAnnotationProcessor2`.
AcceptsNullName
Marker interface for an injector to declare that it ignores the name parameter.
BeanProperty
Marker class for using the JavaBean @Via provider.
ChildResource
Annotation to be used on either methods, fields or constructor parameters to let Sling Models inject a child resource
ChildResource
Marker class for using the ChildResource @Via provider.
Default
Default value for an injection.
DefaultInjectionStrategy
DisposalCallback
Callback interface which can be implemented by Injectors to perform some action when a created object is destroyed.
DisposalCallbackRegistry
Interface which allows for the registration of DisposalCallback listeners.
Exporter
Annotation to declare an model exporter servlet mapping.
ExporterOption
Annotation to specify options on an model's export operation.
Exporters
Annotation to declare multiple exporter servlets for a model.
ExportException
Filter
Provide a filter on an @Inject.
ForcedResourceType
Marker class for using the ForcedResourceType @Via provider.
ImplementationPicker
Defines a strategy to choose an implementation for a model if multiple are registered for the same interface or super class.
InjectAnnotation
Declares an annotation as a custom inject annotation.
InjectAnnotationProcessor
Deprecated.
Use `InjectAnnotationProcessor2` instead
InjectAnnotationProcessor2
Processor for injector-specific annotations.
InjectAnnotationProcessorFactory
Deprecated.
Use `StaticInjectAnnotationProcessorFactory` preferably or in case of a dependency to the adaptable `InjectAnnotationProcessorFactory2`
InjectAnnotationProcessorFactory2
Factory for `InjectAnnotationProcessor2` that is evaluated at runtime for each sling model adaption and may depend on the adaptable.
InjectionStrategy
Injector
Service interface for pluggable value injectors.
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
Model
Mark a class as adaptable via Sling Models.
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.
ModelExporter
SPI interface for model exporters.
ModelFactory
The ModelFactory instantiates Sling Model classes similar to #adaptTo but will throw an exception in case instantiation fails for some reason.
ModelValidation
Optional
Marker annotation for optional injections.
OriginalResourceType
Marker class for using the OriginalResourceType @Via provider.
OSGiService
Annotation to be used on either methods, fields or constructor parameters to let Sling Models inject an OSGi service
Path
Provide path(s) on an @Inject.
PostConstructException
Exception which is triggered, whenever the post-construct method has thrown an exception.
RequestAttribute
Annotation to be used on either methods, fields or constructor parameters to let Sling Models inject a request attribute.
Required
Marker annotation for required injections.
ResourcePath
Annotation to be used on either methods, fields or constructor parameters to let Sling Models inject a resource by path(s).
ResourceSuperType
Marker class for using the ResourceSuperType @Via provider.
ScriptVariable
Annotation to be used on either methods, fields or constructor parameters to let Sling Models inject a script variable (from the org.apache.sling.api.scripting.SlingBindings)
Self
Annotation to be used on either methods, fields or constructor parameters to let Sling Models inject the adaptable itself, or an object that can be adapted from it.
SlingObject
Injects common Sling objects that can be derived from either a SlingHttpServletRequest, a ResourceResolver or a Resource.
Source
Annotation which indicates the specific injector which will populate this injection.
StaticInjectAnnotationProcessorFactory
Factory for `InjectAnnotationProcessor` that is evaluated once a sling model implementation class is registered.
ValidatingAnnotationProcessor
Annotation processor that implements compile-time validation for Sling Models
ValidationException
Thrown in case an validation could not be performed for the given model.
ValidationStrategy
Used by the `Model` annotation.
ValueMapValue
Annotation to be used on either methods, fields or constructor parameter to let Sling Models inject a value from the ValueMap of the current resource.
ValuePreparer
Optimization interface for Injectors which wish to avoid repeated accessing of some object based on the adaptable.
Via
Indicate that this injection point should be handled using some value derived from the adaptable.
ViaProvider
SPI interface for providers of the @Via annotation.
ViaProviderType
Marker interface for eligible @Via provider identifiers.