org.abstracthorizon.extend.support.spring.service
Class SpringAbstractServiceModuleLoader

java.lang.Object
  extended by org.abstracthorizon.extend.server.deployment.service.AbstractServiceModuleLoader
      extended by 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

Field Summary
protected  ConfigurableApplicationContext root
          Root context this loader is created in
 
Fields inherited from class org.abstracthorizon.extend.server.deployment.service.AbstractServiceModuleLoader
deploymentManager, extensions
 
Constructor Summary
SpringAbstractServiceModuleLoader()
          Empty constructor
 
Method Summary
 boolean canLoad(URI uri)
          Returns true if module loader knows how to load (create) module from given URI.
 void setApplicationContext(ApplicationContext applicationContext)
          Sets root application context to be used when creating new ServiceApplicationContextModule instances.
 void start()
          Adds this loader to "DeploymentManager" DeploymentManager.
 
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
 
Methods inherited from interface org.abstracthorizon.extend.server.deployment.ModuleLoader
load, loadAs, toModuleId
 

Field Detail

root

protected ConfigurableApplicationContext root
Root context this loader is created in

Constructor Detail

SpringAbstractServiceModuleLoader

public SpringAbstractServiceModuleLoader()
Empty constructor

Method Detail

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.