Silk DI 0.6


se.jbee.inject.service
Enum ServiceInvocation.ServiceInvocationExtension

Object
  extended by Enum<ServiceInvocation.ServiceInvocationExtension>
      extended by se.jbee.inject.service.ServiceInvocation.ServiceInvocationExtension
All Implemented Interfaces:
Serializable, Comparable<ServiceInvocation.ServiceInvocationExtension>, Extension<ServiceInvocation.ServiceInvocationExtension,ServiceInvocation<?>>
Enclosing interface:
ServiceInvocation<T>

public static enum ServiceInvocation.ServiceInvocationExtension
extends Enum<ServiceInvocation.ServiceInvocationExtension>
implements Extension<ServiceInvocation.ServiceInvocationExtension,ServiceInvocation<?>>

Used to hook up a ServiceInvocation to ServiceMethods. When targeting is used for the extension it has to be chosen which of the 4 possible types the targeting is applied to.


Enum Constant Summary
DEFINING_TYPE
          The Class defined the method that becomes the injected ServiceMethod.
INJECTED_TYPE
          The Class (whose method) is receiving the injected ServiceMethod.
PARAMETER_TYPE
          The Type of the ServiceMethod's parameter generic.
RETURN_TYPE
          The Type of the ServiceMethod's return type generic.
 
Method Summary
static ServiceInvocation.ServiceInvocationExtension valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ServiceInvocation.ServiceInvocationExtension[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

DEFINING_TYPE

public static final ServiceInvocation.ServiceInvocationExtension DEFINING_TYPE
The Class defined the method that becomes the injected ServiceMethod.


INJECTED_TYPE

public static final ServiceInvocation.ServiceInvocationExtension INJECTED_TYPE
The Class (whose method) is receiving the injected ServiceMethod.


PARAMETER_TYPE

public static final ServiceInvocation.ServiceInvocationExtension PARAMETER_TYPE
The Type of the ServiceMethod's parameter generic.


RETURN_TYPE

public static final ServiceInvocation.ServiceInvocationExtension RETURN_TYPE
The Type of the ServiceMethod's return type generic.

Method Detail

values

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

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

valueOf

public static ServiceInvocation.ServiceInvocationExtension 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

Silk DI 0.6