|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<TypeConfiguration>
org.unitils.spring.profile.TypeConfiguration
public enum TypeConfiguration
How do you want to configure you're beans? Do you want to use the annotation Configuration or the annotation SpringApplicationContext.
| 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 |
|---|
public static final TypeConfiguration CONFIGURATION
Configuration to define the beans in the applicationcontext.
The beans are defined in a seperate class and contains the annotation Configuration
example:
public static final TypeConfiguration APPLICATIONCONTEXT
SpringApplicationContext to define the beans in de applicationcontext.
All the beans are defined in an xml file. <beans ... profile="..."> ... </beans>
| Method Detail |
|---|
public static TypeConfiguration[] values()
for (TypeConfiguration c : TypeConfiguration.values()) System.out.println(c);
public static TypeConfiguration valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||