org.jasig.cas.client.configuration
Enum ConfigurationStrategyName

java.lang.Object
  extended by java.lang.Enum<ConfigurationStrategyName>
      extended by org.jasig.cas.client.configuration.ConfigurationStrategyName
All Implemented Interfaces:
Serializable, Comparable<ConfigurationStrategyName>

public enum ConfigurationStrategyName
extends Enum<ConfigurationStrategyName>

Enumeration to map simple names to the underlying classes so that deployers can reference the simple name in the web.xml instead of the fully qualified class name.

Since:
3.4.0
Author:
Scott Battaglia

Enum Constant Summary
DEFAULT
           
JNDI
           
PROPERTY_FILE
           
SYSTEM_PROPERTIES
           
WEB_XML
           
 
Method Summary
static Class<? extends ConfigurationStrategy> resolveToConfigurationStrategy(String value)
          Static helper method that will resolve a simple string to either an enum value or a ConfigurationStrategy class.
static ConfigurationStrategyName valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ConfigurationStrategyName[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DEFAULT

public static final ConfigurationStrategyName DEFAULT

JNDI

public static final ConfigurationStrategyName JNDI

WEB_XML

public static final ConfigurationStrategyName WEB_XML

PROPERTY_FILE

public static final ConfigurationStrategyName PROPERTY_FILE

SYSTEM_PROPERTIES

public static final ConfigurationStrategyName SYSTEM_PROPERTIES
Method Detail

values

public static ConfigurationStrategyName[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ConfigurationStrategyName c : ConfigurationStrategyName.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ConfigurationStrategyName valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

resolveToConfigurationStrategy

public static Class<? extends ConfigurationStrategy> resolveToConfigurationStrategy(String value)
Static helper method that will resolve a simple string to either an enum value or a ConfigurationStrategy class.

Parameters:
value - the value to attempt to resolve.
Returns:
the underlying class that this maps to (either via simple name or fully qualified class name).


Copyright © 2006-2015 Jasig. All Rights Reserved.