org.rhq.plugins.jbossas5.adapter.api
Class AbstractPropertyListAdapter
java.lang.Object
org.rhq.plugins.jbossas5.adapter.api.AbstractPropertyListAdapter
- All Implemented Interfaces:
- PropertyAdapter<org.rhq.core.domain.configuration.PropertyList,org.rhq.core.domain.configuration.definition.PropertyDefinitionList>
- Direct Known Subclasses:
- ConnectionFactoryConfigPropertyAdapter, JMSSecurityConfigAdapter, PropertyListToArrayValueAdapter, PropertyListToCollectionValueAdapter
public abstract class AbstractPropertyListAdapter
- extends Object
- implements PropertyAdapter<org.rhq.core.domain.configuration.PropertyList,org.rhq.core.domain.configuration.definition.PropertyDefinitionList>
A base class for PropertyList <-> ???MetaValue adapters.
- Author:
- Mark Spritzler
|
Method Summary |
org.rhq.core.domain.configuration.PropertyList |
convertToProperty(org.jboss.metatype.api.values.MetaValue metaValue,
org.rhq.core.domain.configuration.definition.PropertyDefinitionList propDefList)
Given a MetaValue, create and return a corresponding Property with the specified PropertyDefinition. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractPropertyListAdapter
public AbstractPropertyListAdapter()
convertToProperty
public org.rhq.core.domain.configuration.PropertyList convertToProperty(org.jboss.metatype.api.values.MetaValue metaValue,
org.rhq.core.domain.configuration.definition.PropertyDefinitionList propDefList)
- Description copied from interface:
PropertyAdapter
- Given a
MetaValue, create and return a corresponding Property with the specified PropertyDefinition. If the MetaValue is a form of list or map, all descendant MetaValue's should be represented
as descendants of the returned Property. Generally this method can simply create an empty Property object and
then delegate the population of the guts of the object to PropertyAdapter.populatePropertyFromMetaValue(Property,
MetaValue, PropertyDefinition).
- Specified by:
convertToProperty in interface PropertyAdapter<org.rhq.core.domain.configuration.PropertyList,org.rhq.core.domain.configuration.definition.PropertyDefinitionList>
- Parameters:
metaValue - the metaValue to be convertedpropDefList - the definition of the property to be created and returned
- Returns:
- the Property representation of the given MetaValue
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.