Interface AnalyserTaskContext
@ProviderType
public interface AnalyserTaskContext
-
Method Summary
Modifier and TypeMethodDescriptionReturns the configuration.org.apache.sling.feature.FeatureThe assembled feature.The feature descriptor.org.apache.sling.feature.builder.FeatureProviderReturns a Feature Provider, if present.The framework descriptorvoidreportArtifactError(org.apache.sling.feature.ArtifactId artifactId, String message) This method is invoked by aAnalyserTaskto report an artifact error.voidreportArtifactWarning(org.apache.sling.feature.ArtifactId artifactId, String message) This method is invoked by aAnalyserTaskto report an artifact warning.voidreportConfigurationError(org.apache.sling.feature.Configuration cfg, String message) This method is invoked by aAnalyserTaskto report a configuration error.voidreportConfigurationWarning(org.apache.sling.feature.Configuration cfg, String message) This method is invoked by aAnalyserTaskto report a configuration warning.voidreportError(String message) This method is invoked by aAnalyserTaskto report a global error.voidreportExtensionError(String extension, String message) This method is invoked by aAnalyserTaskto report an extension error.voidreportExtensionWarning(String extension, String message) This method is invoked by aAnalyserTaskto report an extension warning.voidreportWarning(String message) This method is invoked by aAnalyserTaskto report a global warning.
-
Method Details
-
getFeature
org.apache.sling.feature.Feature getFeature()The assembled feature.- Returns:
- The feature.
-
getFeatureDescriptor
FeatureDescriptor getFeatureDescriptor()The feature descriptor.- Returns:
- the descriptor.
-
getFeatureProvider
org.apache.sling.feature.builder.FeatureProvider getFeatureProvider()Returns a Feature Provider, if present.- Returns:
- the feature provider to use, or
nullif not present.
-
getFrameworkDescriptor
BundleDescriptor getFrameworkDescriptor()The framework descriptor- Returns:
- the descriptor
-
getConfiguration
Returns the configuration.- Returns:
- The configuration map for the analyser task
-
reportWarning
This method is invoked by aAnalyserTaskto report a global warning.- Parameters:
message- The message.
-
reportArtifactWarning
This method is invoked by aAnalyserTaskto report an artifact warning.- Parameters:
artifactId- the artifactidmessage- The message.
-
reportArtifactError
This method is invoked by aAnalyserTaskto report an artifact error.- Parameters:
artifactId- the artifactidmessage- The message.
-
reportExtensionWarning
This method is invoked by aAnalyserTaskto report an extension warning.- Parameters:
extension- the extension.message- The message.
-
reportExtensionError
This method is invoked by aAnalyserTaskto report an extension error.- Parameters:
extension- the extension.message- The message.
-
reportConfigurationWarning
This method is invoked by aAnalyserTaskto report a configuration warning.- Parameters:
cfg- the configuration.message- The message.- Since:
- 1.3.0
-
reportConfigurationError
This method is invoked by aAnalyserTaskto report a configuration error.- Parameters:
cfg- the configuration.message- The message.- Since:
- 1.3.0
-
reportError
This method is invoked by aAnalyserTaskto report a global error.- Parameters:
message- The message.
-