io.nuun.kernel.api.plugin.request
Enum BindingType

java.lang.Object
  extended by java.lang.Enum<BindingType>
      extended by io.nuun.kernel.api.plugin.request.BindingType
All Implemented Interfaces:
Serializable, Comparable<BindingType>

public enum BindingType
extends Enum<BindingType>


Enum Constant Summary
CUSTOM
          Binds the Implementation to the Classes specifed by @To(to={}) Equals: for(Class
IMPLEMENTATION
          Binds the Implementation to itself.
INTERFACES
          Binds the Implementation to all implemented Interfaces.
SUPER
          Binds the Implementation to the extended Super-Class.
 
Method Summary
static BindingType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static BindingType[] 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

IMPLEMENTATION

public static final BindingType IMPLEMENTATION
Binds the Implementation to itself. Equals binder.bind(Implementation.class);


INTERFACES

public static final BindingType INTERFACES
Binds the Implementation to all implemented Interfaces. Equals: for(Interface interface: implementedInterfaces) binder.bind(interface).to(implementation);


SUPER

public static final BindingType SUPER
Binds the Implementation to the extended Super-Class. Equals: binder.bind(superclass).to(implementation);


CUSTOM

public static final BindingType CUSTOM
Binds the Implementation to the Classes specifed by @To(to={}) Equals: for(Class class: toClasses) binder.bind(class).to(implementation);

Method Detail

values

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

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

valueOf

public static BindingType 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-2015. All Rights Reserved.