|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 ModuleLoadercanLoad in class SpringAbstractServiceModuleLoaderuri - URI
true if "WEB-INF" exists in specified directory.protected AbstractApplicationContextModule createModule(URL url)
JettyWebApplicationContext module
createModule in class ServiceModuleLoaderurl - url for the module
protected void preDefinitionProcessing(AbstractApplicationContextModule service)
preDefinitionProcessing in class ServiceModuleLoaderservice - service
public void setApplicationContext(ApplicationContext applicationContext)
throws BeansException
setApplicationContext in interface ApplicationContextAwaresetApplicationContext in class SpringAbstractServiceModuleLoaderapplicationContext - application context this bean is created under
BeansExceptionprotected void addFilesForScanning(AbstractApplicationContextModule module)
addFilesForScanning in class ServiceModuleLoadermodule - module
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||