Package org.apache.sling.feature.builder
Interface HandlerContext
@ProviderType
public interface HandlerContext
Context for an extension handler.
-
Method Summary
Modifier and TypeMethodDescriptionProvide the optional artifact provider.Configuration for the handlerboolean
Is this the first feature being merged in?boolean
Is this merging a prototype into the defining feature?
-
Method Details
-
getArtifactProvider
ArtifactProvider getArtifactProvider()Provide the optional artifact provider.- Returns:
- The artifact provider or
null
-
getConfiguration
Configuration for the handler- Returns:
- Map of provided configuration, or an empty map if there is no configuration.
Never
null
.
-
isPrototypeMerge
boolean isPrototypeMerge()Is this merging a prototype into the defining feature?- Returns:
true
if it is prototype processing- Since:
- 1.3.0
-
isInitialMerge
boolean isInitialMerge()Is this the first feature being merged in?- Returns:
true
if it is the first feature- Since:
- 1.3.0
-