org.unitils.spring.profile
Enum TypeConfiguration

java.lang.Object
  extended by java.lang.Enum<TypeConfiguration>
      extended by org.unitils.spring.profile.TypeConfiguration
All Implemented Interfaces:
Serializable, Comparable<TypeConfiguration>

public enum TypeConfiguration
extends Enum<TypeConfiguration>

How do you want to configure you're beans? Do you want to use the annotation Configuration or the annotation SpringApplicationContext.

Since:
3.4
Author:
Jeroen Horemans, Thomas De Rycke, Willemijn Wouters

Enum Constant Summary
APPLICATIONCONTEXT
          You can use the annotation SpringApplicationContext to define the beans in de applicationcontext.
CONFIGURATION
          You can use the annotation Configuration to define the beans in the applicationcontext.
 
Method Summary
static TypeConfiguration valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TypeConfiguration[] 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

CONFIGURATION

public static final TypeConfiguration CONFIGURATION
You can use the annotation Configuration to define the beans in the applicationcontext. The beans are defined in a seperate class and contains the annotation Configuration example:


APPLICATIONCONTEXT

public static final TypeConfiguration APPLICATIONCONTEXT
You can use the annotation SpringApplicationContext to define the beans in de applicationcontext. All the beans are defined in an xml file.
<beans ... profile="..."> ... </beans>

Method Detail

values

public static TypeConfiguration[] 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 (TypeConfiguration c : TypeConfiguration.values())
    System.out.println(c);

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

valueOf

public static TypeConfiguration 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


Copyright © 2014. All Rights Reserved.