org.rhq.core.gui.configuration.helper
Interface DynamicPropertyRetriever


public interface DynamicPropertyRetriever

Plugins to the dynamic property rendering sections of PropertyRenderingUtility that perform the actual retrieval of the values.

In order to associate implementations of this interface with the rendering code, calls must be made to PropertyRenderingUtility.putDynamicPropertyRetriever(org.rhq.core.domain.configuration.PropertyDynamicType, DynamicPropertyRetriever) to map the property type to the instance.

This functionality is abstracted out to prevent the core-gui module from having to make non-core dependencies. Modules using core-gui can implement this interface using whatever means available, such as accessing a database or making a network hop, without having to modify the core-gui dependencies.

Author:
Jason Dobies

Method Summary
 List<org.rhq.core.domain.configuration.DynamicConfigurationPropertyValue> loadValues(org.rhq.core.domain.configuration.PropertyDefinitionDynamic propertyDefinition)
          Returns a list of values to display to the user when prompting for the property given.
 

Method Detail

loadValues

List<org.rhq.core.domain.configuration.DynamicConfigurationPropertyValue> loadValues(org.rhq.core.domain.configuration.PropertyDefinitionDynamic propertyDefinition)
Returns a list of values to display to the user when prompting for the property given.

Parameters:
propertyDefinition - cannot be null
Returns:
list of values to use as both the name and value of the UI inputs; empty list if none are found


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