Silk DI 0.6


se.jbee.inject.bind
Enum BuildinBundle

Object
  extended by Enum<BuildinBundle>
      extended by se.jbee.inject.bind.BuildinBundle
All Implemented Interfaces:
Serializable, Comparable<BuildinBundle>, ModularBundle<BuildinBundle>

public enum BuildinBundle
extends Enum<BuildinBundle>
implements ModularBundle<BuildinBundle>

Installs all the build-in functionality by using the core API.


Enum Constant Summary
COLLECTION
          Adds: Collection can be injected instead of List (needs explicit List bind).
LIST
          Adds: Lists can be injected for all bound types (via array bridge)
LOGGER
          Adds: Loggers can be injected per receiving class.
PROVIDER
          Adds: Providers can be injected for all bound types.
SET
          Adds: Set can be injected for all bound types (via array bridge)
 
Method Summary
 void bootstrap(Bootstrapper.ModularBootstrapper<BuildinBundle> bootstrap)
           
static BuildinBundle valueOf(String name)
          Returns the enum constant of this type with the specified name.
static BuildinBundle[] 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

PROVIDER

public static final BuildinBundle PROVIDER
Adds: Providers can be injected for all bound types.


LIST

public static final BuildinBundle LIST
Adds: Lists can be injected for all bound types (via array bridge)


SET

public static final BuildinBundle SET
Adds: Set can be injected for all bound types (via array bridge)


COLLECTION

public static final BuildinBundle COLLECTION
Adds: Collection can be injected instead of List (needs explicit List bind).


LOGGER

public static final BuildinBundle LOGGER
Adds: Loggers can be injected per receiving class.

Method Detail

values

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

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

valueOf

public static BuildinBundle 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

bootstrap

public void bootstrap(Bootstrapper.ModularBootstrapper<BuildinBundle> bootstrap)
Specified by:
bootstrap in interface ModularBundle<BuildinBundle>
Parameters:
bootstrap - the Bootstrapper.ModularBootstrapper this bundle should install itself in.

Silk DI 0.6