|
||||||||||
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.
Method Summary | ||
---|---|---|
static
|
getBean(String strName)
Return an instance, which may be shared or independent, of the given bean name. |
|
static
|
getBeansOfType(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 Object |
getPluginBean(String strPluginName,
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(String strName)
T
- the generic typestrName
- The bean's name
@Deprecated public static Object getPluginBean(String strPluginName, 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> List<T> getBeansOfType(Class<T> classDef)
T
- The class typeclassDef
- The class type
public void processPluginEvent(PluginEvent event)
processPluginEvent
in interface PluginEventListener
event
- The event to process
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |