|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.portal.service.spring.SpringContextService
public final class SpringContextService
This class provides a way to use Spring Framework ligthweight containers offering IoC (Inversion of Control) features.
http://www.springframework.org| Method Summary | ||
|---|---|---|
static
|
getBean(java.lang.String strName)
Return an instance, which may be shared or independent, of the given bean name. |
|
static
|
getBeansOfType(java.lang.Class<T> classDef)
Returns a list of bean among all that implements a given interface or extends a given class |
|
static org.springframework.context.ApplicationContext |
getContext()
Gets the application context |
|
static java.lang.Object |
getPluginBean(java.lang.String strPluginName,
java.lang.String strName)
Deprecated. use getBean(String) instead |
|
static void |
init()
Initialize a global Application Context containing all beans (core + plugins) Now uses GenericApplicationContext for better performances. |
|
void |
processPluginEvent(PluginEvent event)
Process a plugin event |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T> T getBean(java.lang.String strName)
T - the generic typestrName - The bean's name
@Deprecated
public static java.lang.Object getPluginBean(java.lang.String strPluginName,
java.lang.String strName)
getBean(String) instead
strPluginName - The Plugin's namestrName - The bean's name
public static void init()
throws LuteceInitException
LuteceInitException - The lutece init exceptionpublic static org.springframework.context.ApplicationContext getContext()
public static <T> java.util.List<T> getBeansOfType(java.lang.Class<T> classDef)
T - The class typeclassDef - The class type
public void processPluginEvent(PluginEvent event)
processPluginEvent in interface PluginEventListenerevent - The event to process
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||