org.rhq.plugins.apache.augeas.mappingImpl
Class MappingDirectivePerMap

java.lang.Object
  extended by org.rhq.rhqtransform.impl.AugeasToConfigurationSimple
      extended by org.rhq.plugins.apache.augeas.mappingImpl.MappingDirectivePerMap
All Implemented Interfaces:
AugeasToConfiguration
Direct Known Subclasses:
MappingDirectivePerMapIndex

public class MappingDirectivePerMap
extends AugeasToConfigurationSimple

A mapping strategy that creates a map for each directive it finds in the augeas tree. The map is supposed to be enclosed in a list. The name of the map definition is supposed to represent the name of the directives to create the maps for.

Author:
Lukas Krejci

Field Summary
 
Fields inherited from class org.rhq.rhqtransform.impl.AugeasToConfigurationSimple
nameMap, tree
 
Constructor Summary
MappingDirectivePerMap()
           
 
Method Summary
 org.rhq.core.domain.configuration.Property createPropertyList(org.rhq.core.domain.configuration.definition.PropertyDefinitionList propDefList, AugeasNode node)
           
 org.rhq.core.domain.configuration.PropertyMap createPropertyMap(org.rhq.core.domain.configuration.definition.PropertyDefinitionMap propDefMap, AugeasNode node)
           
 
Methods inherited from class org.rhq.rhqtransform.impl.AugeasToConfigurationSimple
createPropertySimple, loadProperty, loadResourceConfiguration, setNameMap, setTree
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappingDirectivePerMap

public MappingDirectivePerMap()
Method Detail

createPropertyList

public org.rhq.core.domain.configuration.Property createPropertyList(org.rhq.core.domain.configuration.definition.PropertyDefinitionList propDefList,
                                                                     AugeasNode node)
                                                              throws AugeasRhqException
Specified by:
createPropertyList in interface AugeasToConfiguration
Overrides:
createPropertyList in class AugeasToConfigurationSimple
Throws:
AugeasRhqException

createPropertyMap

public org.rhq.core.domain.configuration.PropertyMap createPropertyMap(org.rhq.core.domain.configuration.definition.PropertyDefinitionMap propDefMap,
                                                                       AugeasNode node)
                                                                throws AugeasRhqException
Specified by:
createPropertyMap in interface AugeasToConfiguration
Overrides:
createPropertyMap in class AugeasToConfigurationSimple
Throws:
AugeasRhqException


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.