|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.abstracthorizon.danube.http.spring.ApplicationSeparator
public class ApplicationSeparator
This class is attended for categorisation of top level components. In other words it, currently, represents configuration for "application" within server.
This class passes request to another ConnectionHandler
which is retrieved from another spring framework "application context".
Field Summary | |
---|---|
protected ApplicationContext |
applicationContext
Application context asked bean must reside it |
protected ConnectionHandler |
applicationsConnectionHandler
Cached application's connection handler |
protected String |
beanName
Name of ConnectionHandler bean name in given application context |
Constructor Summary | |
---|---|
ApplicationSeparator()
Constructor |
|
ApplicationSeparator(ApplicationContext applicationContext,
String beanName)
Constructor |
Method Summary | |
---|---|
String |
getBeanName()
Returns bean name |
ApplicationContext |
getChildContext()
Returns sub application context bean is to be retrieved from |
void |
handleConnection(Connection connection)
Passes execution flow to obtained ConnectionHandler |
void |
init()
Obtains ConnectionHandler from given application context as a bean with given name. |
void |
setBeanName(String beanName)
Sets bean name |
void |
setChildContext(ApplicationContext applicationContext)
Sets sub application context bean is to be retrieved from |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected String beanName
ConnectionHandler
bean name in given application context
protected ApplicationContext applicationContext
protected ConnectionHandler applicationsConnectionHandler
Constructor Detail |
---|
public ApplicationSeparator()
public ApplicationSeparator(ApplicationContext applicationContext, String beanName)
applicationContext
- application context ConnectionHandler
bean is retrieve frombeanName
- bean nameMethod Detail |
---|
public void handleConnection(Connection connection)
ConnectionHandler
handleConnection
in interface ConnectionHandler
connection
- connectionpublic void init()
ConnectionHandler
from given application context as a bean with given name.
public String getBeanName()
public void setBeanName(String beanName)
beanName
- bean namepublic ApplicationContext getChildContext()
public void setChildContext(ApplicationContext applicationContext)
sub
- applicationContext application context bean is to be retrieved from
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |