Package org.apache.sling.rewriter.impl
Class ProcessingComponentConfigurationImpl
- java.lang.Object
-
- org.apache.sling.rewriter.impl.ProcessingComponentConfigurationImpl
-
- All Implemented Interfaces:
ProcessingComponentConfiguration
public class ProcessingComponentConfigurationImpl extends Object implements ProcessingComponentConfiguration
Configuration of a processing component.
-
-
Field Summary
Fields Modifier and Type Field Description static ProcessingComponentConfiguration
EMPTY
Empty configuration.static org.apache.sling.api.resource.ValueMap
EMPTY_CONFIG
Empty configuration map.-
Fields inherited from interface org.apache.sling.rewriter.ProcessingComponentConfiguration
CONFIGURATION_COMPONENT_OPTIONAL
-
-
Constructor Summary
Constructors Constructor Description ProcessingComponentConfigurationImpl(String type, org.apache.sling.api.resource.ValueMap config)
Create a new configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.sling.api.resource.ValueMap
getConfiguration()
Return the configuration for this component.String
getType()
The name/type of the component.String
toString()
-
-
-
Field Detail
-
EMPTY_CONFIG
public static final org.apache.sling.api.resource.ValueMap EMPTY_CONFIG
Empty configuration map.
-
EMPTY
public static final ProcessingComponentConfiguration EMPTY
Empty configuration.
-
-
Constructor Detail
-
ProcessingComponentConfigurationImpl
public ProcessingComponentConfigurationImpl(String type, org.apache.sling.api.resource.ValueMap config)
Create a new configuration.- Parameters:
type
- The type of the component.config
- The configuration or null if no config is available.
-
-
Method Detail
-
getConfiguration
public org.apache.sling.api.resource.ValueMap getConfiguration()
Description copied from interface:ProcessingComponentConfiguration
Return the configuration for this component.- Specified by:
getConfiguration
in interfaceProcessingComponentConfiguration
- Returns:
- The configuration for this component or an empty map if there is none.
- See Also:
ProcessingComponentConfiguration.getConfiguration()
-
getType
public String getType()
Description copied from interface:ProcessingComponentConfiguration
The name/type of the component.- Specified by:
getType
in interfaceProcessingComponentConfiguration
- Returns:
- A unique name for this component.
- See Also:
ProcessingComponentConfiguration.getType()
-
-