org.jitr
Class JitrConfigurationFactory

java.lang.Object
  extended by org.jitr.JitrConfigurationFactory

public final class JitrConfigurationFactory
extends java.lang.Object

A simple factory for creating ConfigurationModels. This takes into account any JitrConfiguration annotations as well as any overriding system properties.

Author:
Josh Devins (info@joshdevins.net)

Field Summary
static java.lang.String BASE_URI_SP_KEY
          The system property key to use when setting the base URI from the command line.
static java.lang.String CONTAINER_CLASS_SP_KEY
          The system property key to use when setting the container class from the command line.
static java.lang.String MODE_SP_KEY
          The system property key to use when setting the operational mode from the command line.
static java.lang.String PORT_SP_KEY
          The system property key to use when setting the port from the command line.
static java.lang.String SP_KEY_PREFIX
          Prefix string used for all Jitr system properties.
 
Method Summary
static ConfigurationModel createConfigurationFromAnnotation(JitrConfiguration annot)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SP_KEY_PREFIX

public static final java.lang.String SP_KEY_PREFIX
Prefix string used for all Jitr system properties.

See Also:
Constant Field Values

BASE_URI_SP_KEY

public static final java.lang.String BASE_URI_SP_KEY
The system property key to use when setting the base URI from the command line. This is mostly useful when disabling the container from the command line and you are taking care of running the container yourself. "jitr.baseUri"

See Also:
MODE_SP_KEY, Constant Field Values

CONTAINER_CLASS_SP_KEY

public static final java.lang.String CONTAINER_CLASS_SP_KEY
The system property key to use when setting the container class from the command line. "jitr.mode"

See Also:
Constant Field Values

MODE_SP_KEY

public static final java.lang.String MODE_SP_KEY
The system property key to use when setting the operational mode from the command line. "jitr.mode"

See Also:
Constant Field Values

PORT_SP_KEY

public static final java.lang.String PORT_SP_KEY
The system property key to use when setting the port from the command line. This is mostly useful when disabling the container from the command line and you are taking care of running the container yourself. "jitr.port"

See Also:
MODE_SP_KEY, Constant Field Values
Method Detail

createConfigurationFromAnnotation

public static ConfigurationModel createConfigurationFromAnnotation(JitrConfiguration annot)


Copyright © 2009. All Rights Reserved.