org.rhq.enterprise.server.configuration
Class PropertyExpressionEvaluator

java.lang.Object
  extended by org.rhq.enterprise.server.configuration.PropertyExpressionEvaluator

public class PropertyExpressionEvaluator
extends Object

Translates the configuration property value lookup key into a named query in the system.

Author:
Jason Dobies
See Also:
DynamicConfigurationPropertyBean

Field Summary
static String KEY_PACKAGE_ARCHITECTURES
           
static String KEY_PACKAGE_TYPES
           
static String KEY_RESOURCE_TYPE_PLUGIN
           
static String KEY_ROLES
           
static String KEY_USERS
           
 
Constructor Summary
PropertyExpressionEvaluator()
           
 
Method Summary
static String getQueryNameForKey(String key)
          Returns the name of the query to use to retrieve the configuration values for properties defined with the given key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

KEY_USERS

public static final String KEY_USERS
See Also:
Constant Field Values

KEY_ROLES

public static final String KEY_ROLES
See Also:
Constant Field Values

KEY_PACKAGE_TYPES

public static final String KEY_PACKAGE_TYPES
See Also:
Constant Field Values

KEY_RESOURCE_TYPE_PLUGIN

public static final String KEY_RESOURCE_TYPE_PLUGIN
See Also:
Constant Field Values

KEY_PACKAGE_ARCHITECTURES

public static final String KEY_PACKAGE_ARCHITECTURES
See Also:
Constant Field Values
Constructor Detail

PropertyExpressionEvaluator

public PropertyExpressionEvaluator()
Method Detail

getQueryNameForKey

public static String getQueryNameForKey(String key)
Returns the name of the query to use to retrieve the configuration values for properties defined with the given key. Each query referenced by the return result should only return a list of String objects, not any form of complex object (such as Resource or Subject).

Parameters:
key - plugin writer specified key to indicate what values to look up; this should be one of the KEY_* values defined in this class.
Returns:
name of a named query, where the query is defined elsewhere; null if the key is not supported by the system


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