pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.bundle
Enum ControllerMethodConfiguration.MemberInfo.InjectType

java.lang.Object
  extended by java.lang.Enum<ControllerMethodConfiguration.MemberInfo.InjectType>
      extended by org.torweg.pulse.bundle.ControllerMethodConfiguration.MemberInfo.InjectType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ControllerMethodConfiguration.MemberInfo.InjectType>
Enclosing class:
ControllerMethodConfiguration.MemberInfo

public static enum ControllerMethodConfiguration.MemberInfo.InjectType
extends java.lang.Enum<ControllerMethodConfiguration.MemberInfo.InjectType>

defines the injection types.


Enum Constant Summary
BUNDLE
          inject the current bundle.
COLLECTION
          inject the parameter's values as a Collection<String>.
LIST
          inject the parameter's values as a List<String>.
PARAMETER
          inject the raw parameter.
SERVICE_REQUEST
          inject the current service request.
SET
          inject the parameter's values as a Set<String>.
STRING
          inject the parameter's first value as a string.
STRING_ARRAY
          inject the parameter's values as an array of strings.
 
Method Summary
static ControllerMethodConfiguration.MemberInfo.InjectType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ControllerMethodConfiguration.MemberInfo.InjectType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

STRING

public static final ControllerMethodConfiguration.MemberInfo.InjectType STRING
inject the parameter's first value as a string.


STRING_ARRAY

public static final ControllerMethodConfiguration.MemberInfo.InjectType STRING_ARRAY
inject the parameter's values as an array of strings.


COLLECTION

public static final ControllerMethodConfiguration.MemberInfo.InjectType COLLECTION
inject the parameter's values as a Collection<String>.


SET

public static final ControllerMethodConfiguration.MemberInfo.InjectType SET
inject the parameter's values as a Set<String>.


LIST

public static final ControllerMethodConfiguration.MemberInfo.InjectType LIST
inject the parameter's values as a List<String>.


PARAMETER

public static final ControllerMethodConfiguration.MemberInfo.InjectType PARAMETER
inject the raw parameter.


SERVICE_REQUEST

public static final ControllerMethodConfiguration.MemberInfo.InjectType SERVICE_REQUEST
inject the current service request.


BUNDLE

public static final ControllerMethodConfiguration.MemberInfo.InjectType BUNDLE
inject the current bundle.

Method Detail

values

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

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

valueOf

public static ControllerMethodConfiguration.MemberInfo.InjectType valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name