pt.digitalis.utils.ioc
Enum IoCImplementations

java.lang.Object
  extended by java.lang.Enum<IoCImplementations>
      extended by pt.digitalis.utils.ioc.IoCImplementations
All Implemented Interfaces:
Serializable, Comparable<IoCImplementations>

public enum IoCImplementations
extends Enum<IoCImplementations>

IoC Utils allows the use of different IoC implementations. This enumerated type defines which are available.

Author:
Pedro Viegas pviegas@digitalis.pt, Rodrigo Gonçalves rgoncalves@digitalis.pt

Enum Constant Summary
GUICE
          Google Guice IoC framework implementation.
 
Method Summary
static IoCImplementations getImplementationByName(String name)
          Returns the IoC implementation from a given name.
static IoCImplementations valueOf(String name)
          Returns the enum constant of this type with the specified name.
static IoCImplementations[] 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

GUICE

public static final IoCImplementations GUICE
Google Guice IoC framework implementation.

Method Detail

values

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

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

valueOf

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

getImplementationByName

public static IoCImplementations getImplementationByName(String name)
Returns the IoC implementation from a given name.

Parameters:
name - name of the IoC
Returns:
the implementation for the given name


Copyright © 2012 Digitalis Informática Lda. All Rights Reserved.