fr.paris.lutece.plugins.dbpage.service
Enum DbPageContextService

java.lang.Object
  extended by java.lang.Enum<DbPageContextService>
      extended by fr.paris.lutece.plugins.dbpage.service.DbPageContextService
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<DbPageContextService>

public enum DbPageContextService
extends java.lang.Enum<DbPageContextService>

This class provides a way to use Spring Framework ligthweight containers offering IoC (Inversion of Control) features.

See Also:
http://www.springframework.org

Enum Constant Summary
INSTANCE
          Implementation of a singleton instance
 
Method Summary
static java.lang.Object getBean(java.lang.String strName)
          Return an instance, which may be shared or independent, of the given bean name.
static java.lang.Object getPluginBean(java.lang.String strPluginName, java.lang.String strName)
          Return an instance of the given bean name loaded by the a Spring BeanFactory.
static DbPageContextService valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static DbPageContextService[] 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

INSTANCE

public static final DbPageContextService INSTANCE
Implementation of a singleton instance

Method Detail

values

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

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

valueOf

public static DbPageContextService 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
java.lang.NullPointerException - if the argument is null

getBean

public static java.lang.Object getBean(java.lang.String strName)
Return an instance, which may be shared or independent, of the given bean name. This method allows a Spring BeanFactory to be used as a replacement for the Singleton or Prototype design pattern.
The bean is retrieved from the main context defined in the WEB-INF/conf/core_context.xml.

Parameters:
strName - The bean's name
Returns:
The instance of the bean

getPluginBean

public static java.lang.Object getPluginBean(java.lang.String strPluginName,
                                             java.lang.String strName)
Return an instance of the given bean name loaded by the a Spring BeanFactory. The bean is retreived from a plugin context defined in the WEB-INF/conf/plugins/[plugin_name]_context.xml.

Parameters:
strPluginName - The Plugin's name
strName - The bean's name
Returns:
The instance of the bean


Copyright © 2010 Mairie de Paris. All Rights Reserved.