|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.abstracthorizon.extend.support.spring.server.SpringBasedServer
public class SpringBasedServer
This class sets up the server.
Field Summary | |
---|---|
protected ClassLoader |
classLoader
Root class loader for server |
protected URL |
homeLocation
Home location of server. |
protected org.slf4j.Logger |
logger
Logger |
protected SpringBasedServerApplicationContext |
serverApplicationContext
Server's configuration |
protected URL |
serverLocation
Setver's location |
Constructor Summary | |
---|---|
SpringBasedServer()
Empty constructor |
|
SpringBasedServer(URL homeLocation,
URL serverLocation)
Constructgor. |
Method Summary | |
---|---|
void |
bootstrapDeploy(BulkDeploy bulkDeploy)
Deploys bootstrap modules from "/config/bootstrap.deploy" file. |
void |
create()
This method sets up class loader and loads server context. |
void |
destroy()
Closes server's context and clears down class loader |
ClassLoader |
getClassLoader()
Returns class loader |
URL |
getHomeLocation()
Returns home location |
SpringBasedServerApplicationContext |
getServerApplicationContext()
Returns server application context |
URL |
getServerLocation()
Returns server's location |
void |
registerBean(String name,
Object bean)
Helper method for registering singleton beans with the server's application context |
void |
setClassLoader(ClassLoader classLoader)
Sets class loader |
void |
setHomeLocation(URL homeLocation)
Sets home location |
void |
setServerLocation(URL serverLocation)
Sets server's location |
void |
shutdown()
Utility method that calls stop() method and then destroy() method. |
void |
start()
This method deploys "deploy" directory. |
void |
stop()
Does nothing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final org.slf4j.Logger logger
protected URL homeLocation
protected URL serverLocation
protected ClassLoader classLoader
protected SpringBasedServerApplicationContext serverApplicationContext
Constructor Detail |
---|
public SpringBasedServer()
public SpringBasedServer(URL homeLocation, URL serverLocation)
homeLocation
- home locaiton of server. Root path where bin directory is.serverLocation
- server's locationMethod Detail |
---|
public void create()
public void start()
public void stop()
public void destroy()
public void shutdown()
stop()
method and then destroy()
method.
public void bootstrapDeploy(BulkDeploy bulkDeploy)
bulkDeploy
- public URL getServerLocation()
public void setServerLocation(URL serverLocation)
serverLocation
- server's locationpublic URL getHomeLocation()
public void setHomeLocation(URL homeLocation)
homeLocation
- home locationpublic ClassLoader getClassLoader()
public void setClassLoader(ClassLoader classLoader)
classLoader
- class loaderpublic SpringBasedServerApplicationContext getServerApplicationContext()
public void registerBean(String name, Object bean)
name
- bean namebean
- bean to be registered
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |