de.smartics.properties.api.core.annotations
Enum PropertyDefinitionTime

Package class diagram package PropertyDefinitionTime
java.lang.Object
  extended by java.lang.Enum<PropertyDefinitionTime>
      extended by de.smartics.properties.api.core.annotations.PropertyDefinitionTime
All Implemented Interfaces:
Serializable, Comparable< PropertyDefinitionTime>

public enum PropertyDefinitionTime
     
     
extends Enum< PropertyDefinitionTime>

Defines the different times the definition of a property is conducted.

See Also:
PropertyLifecycle.definitionTime()

Enum Constant Summary
BUILD
          The property value is set at build time.
DEPLOYMENT
          The configuration is applied at deployment time as part of the deploy process.
PACKAGING
          The property value is set at packaging time.
RUN
          The configuration can be applied at any time the application is running.
STARTUP
          The configuration is applied on start up of the application.
 
Method Summary
static PropertyDefinitionTime valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PropertyDefinitionTime[] 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

BUILD

public static final PropertyDefinitionTime BUILD
The property value is set at build time. For instance properties that are hard coded or otherwise incorporated into the binaries.

Properties defined at build time are not recommended, because the value of such a property can only be changed with great effort (i.e. running the build again).


PACKAGING

public static final PropertyDefinitionTime PACKAGING
The property value is set at packaging time. Properties are added at the time archives (e.g. EARs, JARs, or WARs) are built.

Properties defined at build time are not recommended, because the value of such a property can only be changed with great effort (i.e. creating the archives again).


DEPLOYMENT

public static final PropertyDefinitionTime DEPLOYMENT
The configuration is applied at deployment time as part of the deploy process. The information may be provided manually by the deployer or automatically fetched from a remote properties server during the deployment of an artifact to a container (e.g. application server).


STARTUP

public static final PropertyDefinitionTime STARTUP
The configuration is applied on start up of the application. The application may read the property values by a startup process.


RUN

public static final PropertyDefinitionTime RUN
The configuration can be applied at any time the application is running. This includes the situation where the application reads a property value on demand from a remote properties server.

Method Detail

values

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

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

valueOf

public static PropertyDefinitionTime 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 © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.