com.liferay.portal.spring.util
Class SpringUtil
java.lang.Object
com.liferay.portal.spring.util.SpringUtil
public class SpringUtil
- extends java.lang.Object
View Source
In most cases, SpringUtil.setContext() would have been called by
com.liferay.portal.spring.context.PortalContextLoaderListener, configured in
web.xml for the web application. However, there will be times in which
SpringUtil will be called in a non-web application and, therefore, require
manual instantiation of the application context.
- Author:
- Michael Young
Method Summary |
static org.springframework.context.ApplicationContext |
getContext()
|
static void |
initContext()
|
static void |
initContext(org.springframework.context.ApplicationContext applicationContext)
|
static void |
setContext(org.springframework.context.ApplicationContext applicationContext)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpringUtil
public SpringUtil()
getContext
public static org.springframework.context.ApplicationContext getContext()
initContext
public static void initContext()
initContext
public static void initContext(org.springframework.context.ApplicationContext applicationContext)
setContext
public static void setContext(org.springframework.context.ApplicationContext applicationContext)