org.rhq.plugins.jbossas5.adapter.impl.configuration
Class PropertyMapToCompositeValueSupportAdapter

java.lang.Object
  extended by org.rhq.plugins.jbossas5.adapter.api.AbstractPropertyMapAdapter
      extended by org.rhq.plugins.jbossas5.adapter.impl.configuration.AbstractPropertyMapToCompositeValueAdapter
          extended by org.rhq.plugins.jbossas5.adapter.impl.configuration.PropertyMapToCompositeValueSupportAdapter
All Implemented Interfaces:
PropertyAdapter<org.rhq.core.domain.configuration.PropertyMap,org.rhq.core.domain.configuration.definition.PropertyDefinitionMap>

public class PropertyMapToCompositeValueSupportAdapter
extends AbstractPropertyMapToCompositeValueAdapter
implements PropertyAdapter<org.rhq.core.domain.configuration.PropertyMap,org.rhq.core.domain.configuration.definition.PropertyDefinitionMap>

This class provides code that maps back and forth between a PropertyMap and a CompositeValueSupport. A CompositeValueSupport is a CompositeValue implementation that contains items that may be of different types.

Author:
Ian Springer

Constructor Summary
PropertyMapToCompositeValueSupportAdapter()
           
 
Method Summary
protected  org.jboss.metatype.api.values.CompositeValue createCompositeValue(org.rhq.core.domain.configuration.definition.PropertyDefinitionMap propDefMap, org.jboss.metatype.api.types.MetaType metaType)
           
protected  void putValue(org.jboss.metatype.api.values.CompositeValue compositeValue, String key, org.jboss.metatype.api.values.MetaValue value)
           
 
Methods inherited from class org.rhq.plugins.jbossas5.adapter.impl.configuration.AbstractPropertyMapToCompositeValueAdapter
convertToMetaValue, populateMetaValueFromProperty, populatePropertyFromMetaValue
 
Methods inherited from class org.rhq.plugins.jbossas5.adapter.api.AbstractPropertyMapAdapter
convertToProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.rhq.plugins.jbossas5.adapter.api.PropertyAdapter
convertToMetaValue, convertToProperty, populateMetaValueFromProperty, populatePropertyFromMetaValue
 

Constructor Detail

PropertyMapToCompositeValueSupportAdapter

public PropertyMapToCompositeValueSupportAdapter()
Method Detail

putValue

protected void putValue(org.jboss.metatype.api.values.CompositeValue compositeValue,
                        String key,
                        org.jboss.metatype.api.values.MetaValue value)
Specified by:
putValue in class AbstractPropertyMapToCompositeValueAdapter

createCompositeValue

protected org.jboss.metatype.api.values.CompositeValue createCompositeValue(org.rhq.core.domain.configuration.definition.PropertyDefinitionMap propDefMap,
                                                                            org.jboss.metatype.api.types.MetaType metaType)
Specified by:
createCompositeValue in class AbstractPropertyMapToCompositeValueAdapter


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