|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.abstracthorizon.extend.server.deployment.service.AbstractServiceModuleLoader org.abstracthorizon.extend.support.spring.service.SpringAbstractServiceModuleLoader org.abstracthorizon.extend.support.spring.service.ServiceModuleLoader org.abstracthorizon.spring.server.deployment.jetty.JettyWarModuleLoader
public class JettyWarModuleLoader
Jetty war archive (or directory) module loader (deployer). It checks if "WEB-INF" directory is present and if so deploys archive with (embedded) Jetty.
Current implementation creates context and deploys it with current host (defined under "jetty.host" name in jetty service archive).
Field Summary |
---|
Fields inherited from class org.abstracthorizon.extend.support.spring.service.ServiceModuleLoader |
---|
bufferSize, INITIAL_BUFFER_SIZE, redeployURLScanner |
Fields inherited from class org.abstracthorizon.extend.support.spring.service.SpringAbstractServiceModuleLoader |
---|
root |
Fields inherited from class org.abstracthorizon.extend.server.deployment.service.AbstractServiceModuleLoader |
---|
deploymentManager, extensions |
Constructor Summary | |
---|---|
JettyWarModuleLoader()
Empty constructor. |
Method Summary | |
---|---|
protected void |
addFilesForScanning(AbstractApplicationContextModule module)
Hook method that collects all important files from newly created module and adds then to the URL redeployment scanner. |
boolean |
canLoad(URI uri)
Returns true if "WEB-INF" exists in specified directory. |
protected AbstractApplicationContextModule |
createModule(URL url)
Creates new module JettyWebApplicationContext module |
protected void |
preDefinitionProcessing(AbstractApplicationContextModule service)
Called before module is pronounced defined |
void |
setApplicationContext(ApplicationContext applicationContext)
Sets application context |
Methods inherited from class org.abstracthorizon.extend.support.spring.service.ServiceModuleLoader |
---|
copy, downloadArchive, getBufferSize, getRedeployURLScanner, load, loadAs, postDefinitionProcessing, setBufferSize, setRedeployURLScanner, toModuleId, unpackArchive |
Methods inherited from class org.abstracthorizon.extend.support.spring.service.SpringAbstractServiceModuleLoader |
---|
start |
Methods inherited from class org.abstracthorizon.extend.server.deployment.service.AbstractServiceModuleLoader |
---|
getDeploymentManager, getExtensions, setDeploymentManager, setExtensions, stop |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JettyWarModuleLoader()
Method Detail |
---|
public boolean canLoad(URI uri)
true
if "WEB-INF" exists in specified directory.
canLoad
in interface ModuleLoader
canLoad
in class SpringAbstractServiceModuleLoader
uri
- URI
true
if "WEB-INF" exists in specified directory.protected AbstractApplicationContextModule createModule(URL url)
JettyWebApplicationContext
module
createModule
in class ServiceModuleLoader
url
- url for the module
protected void preDefinitionProcessing(AbstractApplicationContextModule service)
preDefinitionProcessing
in class ServiceModuleLoader
service
- servicepublic void setApplicationContext(ApplicationContext applicationContext) throws BeansException
setApplicationContext
in interface ApplicationContextAware
setApplicationContext
in class SpringAbstractServiceModuleLoader
applicationContext
- application context this bean is created under
BeansException
protected void addFilesForScanning(AbstractApplicationContextModule module)
addFilesForScanning
in class ServiceModuleLoader
module
- module
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |