|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpl.bristleback.server.bristle.integration.spring.SpringIntegrationUtil
public final class SpringIntegrationUtil
Util class which can enable integration with Spring dependency injection. To enable integration, one of existing application context setter methods must be invoked before jwebsocket framework starts. In current version, enabling Spring integration is tested only with web applications.
Created on: 2010-10-03 13:37:28
| Method Summary | ||
|---|---|---|
static boolean |
containsBean(java.lang.String ref)
|
|
static org.springframework.context.ApplicationContext |
getApplicationContext()
Gets previously loaded application context. |
|
static java.lang.Object |
getSpringBean(java.lang.String ref)
Gets spring bean from previously given application context. |
|
static
|
getSpringBean(java.lang.String ref,
java.lang.Class<T> beanType)
Gets spring bean from previously given application context. |
|
static void |
setApplicationContext(org.springframework.context.ApplicationContext context)
Directly sets application context. |
|
static void |
setApplicationContextFromServlet(javax.servlet.ServletContext servletContext)
Sets application context from given servlet context. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static org.springframework.context.ApplicationContext getApplicationContext()
public static void setApplicationContextFromServlet(javax.servlet.ServletContext servletContext)
servletContext - servlet context.public static void setApplicationContext(org.springframework.context.ApplicationContext context)
context - application contextpublic static java.lang.Object getSpringBean(java.lang.String ref)
ref - Spring reference name
public static boolean containsBean(java.lang.String ref)
public static <T> T getSpringBean(java.lang.String ref,
java.lang.Class<T> beanType)
ref - Spring reference namebeanType - exact type of bean or parent.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||