Skip navigation links
A B C D E F G H I M O P R S V 

A

AbstractInjectAnnotationProcessor - Class in org.apache.sling.models.spi.injectorspecific
Deprecated.
AbstractInjectAnnotationProcessor() - Constructor for class org.apache.sling.models.spi.injectorspecific.AbstractInjectAnnotationProcessor
Deprecated.
 
AbstractInjectAnnotationProcessor2 - Class in org.apache.sling.models.spi.injectorspecific
Default implementation of InjectAnnotationProcessor2.
AbstractInjectAnnotationProcessor2() - Constructor for class org.apache.sling.models.spi.injectorspecific.AbstractInjectAnnotationProcessor2
 
AcceptsNullName - Interface in org.apache.sling.models.spi
Marker interface for an injector to declare that it ignores the name parameter.
addDisposalCallback(DisposalCallback) - Method in interface org.apache.sling.models.spi.DisposalCallbackRegistry
Register a callback.
addMissingElementExceptions(MissingElementException) - Method in exception org.apache.sling.models.factory.MissingElementsException
 

B

BeanProperty - Class in org.apache.sling.models.annotations.via
Marker class for using the JavaBean @Via provider.
BeanProperty() - Constructor for class org.apache.sling.models.annotations.via.BeanProperty
 

C

canCreateFromAdaptable(Object, Class<?>) - Method in interface org.apache.sling.models.factory.ModelFactory
 
ChildResource - Annotation Type in org.apache.sling.models.annotations.injectorspecific
Annotation to be used on either methods, fields or constructor parameters to let Sling Models inject a child resource
ChildResource - Class in org.apache.sling.models.annotations.via
Marker class for using the ChildResource @Via provider.
ChildResource() - Constructor for class org.apache.sling.models.annotations.via.ChildResource
 
createAnnotationProcessor(Object, AnnotatedElement) - Method in interface org.apache.sling.models.spi.injectorspecific.InjectAnnotationProcessorFactory
Deprecated.
 
createAnnotationProcessor(Object, AnnotatedElement) - Method in interface org.apache.sling.models.spi.injectorspecific.InjectAnnotationProcessorFactory2
 
createAnnotationProcessor(AnnotatedElement) - Method in interface org.apache.sling.models.spi.injectorspecific.StaticInjectAnnotationProcessorFactory
 
createModel(Object, Class<ModelType>) - Method in interface org.apache.sling.models.factory.ModelFactory
Instantiates the given Sling Model class from the given adaptable.

D

Default - Annotation Type in org.apache.sling.models.annotations
Default value for an injection.
DefaultInjectionStrategy - Enum in org.apache.sling.models.annotations
 
DisposalCallback - Interface in org.apache.sling.models.spi
Callback interface which can be implemented by Injectors to perform some action when a created object is destroyed.
DisposalCallbackRegistry - Interface in org.apache.sling.models.spi
Interface which allows for the registration of DisposalCallback listeners.

E

export(Object, Class<T>, Map<String, String>) - Method in interface org.apache.sling.models.export.spi.ModelExporter
Export the provided model to the defined class using the options.
Exporter - Annotation Type in org.apache.sling.models.annotations
Annotation to declare an model exporter servlet mapping.
ExporterOption - Annotation Type in org.apache.sling.models.annotations
Annotation to specify options on an model's export operation.
Exporters - Annotation Type in org.apache.sling.models.annotations
Annotation to declare multiple exporter servlets for a model.
ExportException - Exception in org.apache.sling.models.factory
 
ExportException(String) - Constructor for exception org.apache.sling.models.factory.ExportException
 
ExportException(Throwable) - Constructor for exception org.apache.sling.models.factory.ExportException
 
exportModel(Object, String, Class<T>, Map<String, String>) - Method in interface org.apache.sling.models.factory.ModelFactory
Export the model object using the defined target class using the named exporter.
exportModelForRequest(SlingHttpServletRequest, String, Class<T>, Map<String, String>) - Method in interface org.apache.sling.models.factory.ModelFactory
Export the model object registered to the request's resource's type using the defined target class using the named exporter.
exportModelForResource(Resource, String, Class<T>, Map<String, String>) - Method in interface org.apache.sling.models.factory.ModelFactory
Export the model object registered to the resource's type using the defined target class using the named exporter.

F

Filter - Annotation Type in org.apache.sling.models.annotations
Provide a filter on an @Inject.
ForcedResourceType - Class in org.apache.sling.models.annotations.via
Marker class for using the ForcedResourceType @Via provider.
ForcedResourceType() - Constructor for class org.apache.sling.models.annotations.via.ForcedResourceType
 

G

getAdaptable(Object, String) - Method in interface org.apache.sling.models.spi.ViaProvider
Get an adaptable using the value of the @Via annotation.
getDefault() - Method in class org.apache.sling.models.spi.injectorspecific.AbstractInjectAnnotationProcessor
Deprecated.
 
getDefault() - Method in interface org.apache.sling.models.spi.injectorspecific.InjectAnnotationProcessor
Deprecated.
Tries to get the default value from the annotation.
getDefault() - Method in interface org.apache.sling.models.spi.injectorspecific.InjectAnnotationProcessor2
Tries to get the default value from the annotation.
getElement() - Method in exception org.apache.sling.models.factory.MissingElementException
 
getInjectionStrategy() - Method in class org.apache.sling.models.spi.injectorspecific.AbstractInjectAnnotationProcessor2
 
getInjectionStrategy() - Method in interface org.apache.sling.models.spi.injectorspecific.InjectAnnotationProcessor2
Tries to get the information whether the injection is optional.
getMissingElements() - Method in exception org.apache.sling.models.factory.MissingElementsException
 
getModelFromRequest(SlingHttpServletRequest) - Method in interface org.apache.sling.models.factory.ModelFactory
Obtain an adapted model class based on the resource type of the request's resource.
getModelFromResource(Resource) - Method in interface org.apache.sling.models.factory.ModelFactory
Obtain an adapted model class based on the resource type of the provided resource.
getModelFromWrappedRequest(SlingHttpServletRequest, Resource, Class<T>) - Method in interface org.apache.sling.models.factory.ModelFactory
Create a wrapped request object with the specified resource and (try to) adapt the request object into the specified class.
getName() - Method in interface org.apache.sling.models.export.spi.ModelExporter
The name of the exporter.
getName() - Method in interface org.apache.sling.models.spi.Injector
Return a logical name for the injector.
getName() - Method in class org.apache.sling.models.spi.injectorspecific.AbstractInjectAnnotationProcessor
Deprecated.
 
getName() - Method in interface org.apache.sling.models.spi.injectorspecific.InjectAnnotationProcessor
Deprecated.
Tries to get the name value from the annotation.
getName() - Method in interface org.apache.sling.models.spi.injectorspecific.InjectAnnotationProcessor2
Tries to get the name value from the annotation.
getType() - Method in interface org.apache.sling.models.spi.ViaProvider
Return the marker class for use in the @Via annotation
getValue(Object, String, Type, AnnotatedElement, DisposalCallbackRegistry) - Method in interface org.apache.sling.models.spi.Injector
Produce a value for an injection point.
getVia() - Method in class org.apache.sling.models.spi.injectorspecific.AbstractInjectAnnotationProcessor
Deprecated.
 
getVia() - Method in interface org.apache.sling.models.spi.injectorspecific.InjectAnnotationProcessor
Deprecated.
Tries to get the via value from the annotation.
getVia() - Method in interface org.apache.sling.models.spi.injectorspecific.InjectAnnotationProcessor2
Tries to get the via value from the annotation.

H

hasDefault() - Method in class org.apache.sling.models.spi.injectorspecific.AbstractInjectAnnotationProcessor
Deprecated.
 
hasDefault() - Method in interface org.apache.sling.models.spi.injectorspecific.InjectAnnotationProcessor
Deprecated.
 
hasDefault() - Method in interface org.apache.sling.models.spi.injectorspecific.InjectAnnotationProcessor2
 

I

ImplementationPicker - Interface in org.apache.sling.models.spi
Defines a strategy to choose an implementation for a model if multiple are registered for the same interface or super class.
InjectAnnotation - Annotation Type in org.apache.sling.models.spi.injectorspecific
Declares an annotation as a custom inject annotation.
InjectAnnotationProcessor - Interface in org.apache.sling.models.spi.injectorspecific
Deprecated.
InjectAnnotationProcessor2 - Interface in org.apache.sling.models.spi.injectorspecific
Processor for injector-specific annotations.
InjectAnnotationProcessorFactory - Interface in org.apache.sling.models.spi.injectorspecific
Deprecated.
Use StaticInjectAnnotationProcessorFactory preferably or in case of a dependency to the adaptable InjectAnnotationProcessorFactory2
InjectAnnotationProcessorFactory2 - Interface in org.apache.sling.models.spi.injectorspecific
Factory for InjectAnnotationProcessor2 that is evaluated at runtime for each sling model adaption and may depend on the adaptable.
InjectionStrategy - Enum in org.apache.sling.models.annotations.injectorspecific
 
Injector - Interface in org.apache.sling.models.spi
Service interface for pluggable value injectors.
InvalidAdaptableException - Exception in org.apache.sling.models.factory
Exception which is triggered whenever a Sling Model could not be instantiated because it could not be adapted from the given adaptable.
InvalidAdaptableException(String) - Constructor for exception org.apache.sling.models.factory.InvalidAdaptableException
 
InvalidModelException - Exception in org.apache.sling.models.factory
Thrown in case the given model type could not be validated through the model validation.
InvalidModelException(String) - Constructor for exception org.apache.sling.models.factory.InvalidModelException
 
isEmpty() - Method in exception org.apache.sling.models.factory.MissingElementsException
 
isModelAvailableForRequest(SlingHttpServletRequest) - Method in interface org.apache.sling.models.factory.ModelFactory
Determine is a model class is available for the request's resource's resource type.
isModelAvailableForResource(Resource) - Method in interface org.apache.sling.models.factory.ModelFactory
Determine is a model class is available for the resource's resource type.
isModelClass(Object, Class<?>) - Method in interface org.apache.sling.models.factory.ModelFactory
Deprecated.
isModelClass(Class<?>) - Method in interface org.apache.sling.models.factory.ModelFactory
Checks if a given type can be instantiated though Sling Models.
isOptional() - Method in class org.apache.sling.models.spi.injectorspecific.AbstractInjectAnnotationProcessor
Deprecated.
 
isOptional() - Method in interface org.apache.sling.models.spi.injectorspecific.InjectAnnotationProcessor
isSupported(Class<?>) - Method in interface org.apache.sling.models.export.spi.ModelExporter
Check if the result class is supported by this exporter.

M

MissingElementException - Exception in org.apache.sling.models.factory
Exception which is used whenever one element (field, method or constructor) could not be set.
MissingElementException(AnnotatedElement, Throwable) - Constructor for exception org.apache.sling.models.factory.MissingElementException
 
MissingElementsException - Exception in org.apache.sling.models.factory
Exception which is triggered whenever a Sling Model cannot be instantiated due to some missing elements (i.e. required fields/methods/constructor parameters could not be injected).
MissingElementsException(String) - Constructor for exception org.apache.sling.models.factory.MissingElementsException
 
MissingExporterException - Exception in org.apache.sling.models.factory
 
MissingExporterException(String, Class<?>) - Constructor for exception org.apache.sling.models.factory.MissingExporterException
 
Model - Annotation Type in org.apache.sling.models.annotations
Mark a class as adaptable via Sling Models.
ModelClassException - Exception in org.apache.sling.models.factory
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.
ModelClassException(String) - Constructor for exception org.apache.sling.models.factory.ModelClassException
 
ModelClassException(String, Throwable) - Constructor for exception org.apache.sling.models.factory.ModelClassException
 
ModelExporter - Interface in org.apache.sling.models.export.spi
SPI interface for model exporters.
ModelFactory - Interface in org.apache.sling.models.factory
The ModelFactory instantiates Sling Model classes similar to #adaptTo but will throw an exception in case instantiation fails for some reason.
ModelValidation - Interface in org.apache.sling.models.spi
 

O

onDisposed() - Method in interface org.apache.sling.models.spi.DisposalCallback
Callback method for when an object is destroyed.
Optional - Annotation Type in org.apache.sling.models.annotations
Marker annotation for optional injections.
org.apache.sling.models.annotations - package org.apache.sling.models.annotations
 
org.apache.sling.models.annotations.injectorspecific - package org.apache.sling.models.annotations.injectorspecific
 
org.apache.sling.models.annotations.via - package org.apache.sling.models.annotations.via
 
org.apache.sling.models.export.spi - package org.apache.sling.models.export.spi
 
org.apache.sling.models.factory - package org.apache.sling.models.factory
 
org.apache.sling.models.spi - package org.apache.sling.models.spi
 
org.apache.sling.models.spi.injectorspecific - package org.apache.sling.models.spi.injectorspecific
 
ORIGINAL - Static variable in interface org.apache.sling.models.spi.ViaProvider
Marker object indicating that the original object should be used.
OSGiService - Annotation Type in org.apache.sling.models.annotations.injectorspecific
Annotation to be used on either methods, fields or constructor parameters to let Sling Models inject an OSGi service

P

Path - Annotation Type in org.apache.sling.models.annotations
Provide path(s) on an @Inject.
pick(Class<?>, Class<?>[], Object) - Method in interface org.apache.sling.models.spi.ImplementationPicker
Select an implementation for the adapter class to which the adaptable should be adapted to.
PostConstructException - Exception in org.apache.sling.models.factory
Exception which is triggered, whenever the post-construct method has thrown an exception.
PostConstructException(String, Throwable) - Constructor for exception org.apache.sling.models.factory.PostConstructException
 
prepareValue(Object) - Method in interface org.apache.sling.models.spi.ValuePreparer
Prepare a value from the adaptable.

R

RequestAttribute - Annotation Type in org.apache.sling.models.annotations.injectorspecific
Annotation to be used on either methods, fields or constructor parameters to let Sling Models inject a request attribute.
Required - Annotation Type in org.apache.sling.models.annotations
Marker annotation for required injections.
ResourcePath - Annotation Type in org.apache.sling.models.annotations.injectorspecific
Annotation to be used on either methods, fields or constructor parameters to let Sling Models inject a resource by path(s).
ResourceSuperType - Class in org.apache.sling.models.annotations.via
Marker class for using the ResourceSuperType @Via provider.
ResourceSuperType() - Constructor for class org.apache.sling.models.annotations.via.ResourceSuperType
 

S

ScriptVariable - Annotation Type in org.apache.sling.models.annotations.injectorspecific
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 Type in org.apache.sling.models.annotations.injectorspecific
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 - Annotation Type in org.apache.sling.models.annotations.injectorspecific
Injects common Sling objects that can be derived from either a SlingHttpServletRequest, a ResourceResolver or a Resource.
Source - Annotation Type in org.apache.sling.models.annotations
Annotation which indicates the specific injector which will populate this injection.
StaticInjectAnnotationProcessorFactory - Interface in org.apache.sling.models.spi.injectorspecific
Factory for InjectAnnotationProcessor that is evaluated once a sling model implementation class is registered.

V

validate(Object, Class<ModelType>, boolean) - Method in interface org.apache.sling.models.spi.ModelValidation
Triggers validation for the given model on the given adaptable
ValidationException - Exception in org.apache.sling.models.factory
Thrown in case an validation could not be performed for the given model.
ValidationException(String) - Constructor for exception org.apache.sling.models.factory.ValidationException
 
ValidationException(Throwable) - Constructor for exception org.apache.sling.models.factory.ValidationException
 
ValidationStrategy - Enum in org.apache.sling.models.annotations
Used by the Model annotation.
ValueMapValue - Annotation Type in org.apache.sling.models.annotations.injectorspecific
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.
valueOf(String) - Static method in enum org.apache.sling.models.annotations.DefaultInjectionStrategy
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.apache.sling.models.annotations.injectorspecific.InjectionStrategy
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum org.apache.sling.models.annotations.ValidationStrategy
Returns the enum constant of this type with the specified name.
ValuePreparer - Interface in org.apache.sling.models.spi
Optimization interface for Injectors which wish to avoid repeated accessing of some object based on the adaptable.
values() - Static method in enum org.apache.sling.models.annotations.DefaultInjectionStrategy
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.apache.sling.models.annotations.injectorspecific.InjectionStrategy
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum org.apache.sling.models.annotations.ValidationStrategy
Returns an array containing the constants of this enum type, in the order they are declared.
Via - Annotation Type in org.apache.sling.models.annotations
Indicate that this injection point should be handled using some value derived from the adaptable.
ViaProvider - Interface in org.apache.sling.models.spi
SPI interface for providers of the @Via annotation.
ViaProviderType - Interface in org.apache.sling.models.annotations
Marker interface for eligible @Via provider identifiers.
A B C D E F G H I M O P R S V 
Skip navigation links

Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.