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 ProcessingComponentConfigurationEMPTYEmpty configuration.static org.apache.sling.api.resource.ValueMapEMPTY_CONFIGEmpty 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.ValueMapgetConfiguration()Return the configuration for this component.StringgetType()The name/type of the component.StringtoString()
-
-
-
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:ProcessingComponentConfigurationReturn the configuration for this component.- Specified by:
getConfigurationin 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:ProcessingComponentConfigurationThe name/type of the component.- Specified by:
getTypein interfaceProcessingComponentConfiguration- Returns:
- A unique name for this component.
- See Also:
ProcessingComponentConfiguration.getType()
-
-