org.abstracthorizon.extend.support.spring.service
Class SpringAbstractServiceModuleLoader
java.lang.Object
org.abstracthorizon.extend.server.deployment.service.AbstractServiceModuleLoader
org.abstracthorizon.extend.support.spring.service.SpringAbstractServiceModuleLoader
- All Implemented Interfaces:
- ModuleLoader, ApplicationContextAware
- Direct Known Subclasses:
- ServiceModuleLoader
public abstract class SpringAbstractServiceModuleLoader
- extends AbstractServiceModuleLoader
- implements ApplicationContextAware
Service module loader. It loads "service.xml" file as
spring's application context xml configuration file.
TODO: explain donwloading and unpacking of archives
- Author:
- Daniel Sendula
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
root
protected ConfigurableApplicationContext root
- Root context this loader is created in
SpringAbstractServiceModuleLoader
public SpringAbstractServiceModuleLoader()
- Empty constructor
canLoad
public boolean canLoad(URI uri)
- Returns
true
if module loader knows how to load (create) module from given URI.
- Specified by:
canLoad
in interface ModuleLoader
- Overrides:
canLoad
in class AbstractServiceModuleLoader
- Parameters:
uri
- URI
- Returns:
true
if module loader knows how to load (create) module from given URI.
setApplicationContext
public void setApplicationContext(ApplicationContext applicationContext)
- Sets root application context to be used when creating new
ServiceApplicationContextModule
instances.
- Specified by:
setApplicationContext
in interface ApplicationContextAware
- Parameters:
applicationContext
- root application context
start
public void start()
- Adds this loader to "DeploymentManager"
DeploymentManager
.
- Overrides:
start
in class AbstractServiceModuleLoader
Copyright © 2005-2009 Abstract Horizon. All Rights Reserved.