|
||||||||||
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 java.lang.Object |
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)
Return an instance of the given bean name loaded by the a Spring BeanFactory. |
|
static void |
init()
Initialize a global Application Context containing all beans (core + plugins) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.Object getBean(java.lang.String strName)
strName
- The bean's name
public static java.lang.Object getPluginBean(java.lang.String strPluginName, java.lang.String strName)
strPluginName
- The Plugin's namestrName
- The bean's name
public static void init() throws LuteceInitException
LuteceInitException
public 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |