org.apache.servicemix.common.xbean
Class AbstractXBeanDeployer

java.lang.Object
  extended by org.apache.servicemix.common.AbstractDeployer
      extended by org.apache.servicemix.common.xbean.AbstractXBeanDeployer
All Implemented Interfaces:
Deployer
Direct Known Subclasses:
BaseXBeanDeployer

public class AbstractXBeanDeployer
extends AbstractDeployer


Field Summary
 
Fields inherited from class org.apache.servicemix.common.AbstractDeployer
component, logger
 
Constructor Summary
AbstractXBeanDeployer(ServiceMixComponent component)
           
 
Method Summary
 boolean canDeploy(java.lang.String serviceUnitName, java.lang.String serviceUnitRootPath)
          Check if this deployer is able to handle a given artifact.
protected  org.apache.xbean.spring.context.FileSystemXmlApplicationContext createApplicationContext(java.lang.String serviceUnitRootPath)
           
 ServiceUnit deploy(java.lang.String serviceUnitName, java.lang.String serviceUnitRootPath)
          Actually deploys the given service unit and build a ServiceUnit object that contains endpoints.
protected  java.util.List getBeanFactoryPostProcessors(java.lang.String serviceUnitRootPath)
           
protected  java.util.Map getParentBeansMap()
           
protected  java.util.Collection<Endpoint> getServices(org.springframework.context.support.AbstractXmlApplicationContext applicationContext)
           
protected  java.lang.String getXBeanFile()
           
protected  java.util.List getXmlPreProcessors(java.lang.String serviceUnitRootPath)
           
protected  void initApplicationContext(org.springframework.context.support.AbstractXmlApplicationContext applicationContext)
           
 
Methods inherited from class org.apache.servicemix.common.AbstractDeployer
failure, undeploy, validate, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractXBeanDeployer

public AbstractXBeanDeployer(ServiceMixComponent component)
Method Detail

getXBeanFile

protected java.lang.String getXBeanFile()

canDeploy

public boolean canDeploy(java.lang.String serviceUnitName,
                         java.lang.String serviceUnitRootPath)
Description copied from interface: Deployer
Check if this deployer is able to handle a given artifact.

Parameters:
serviceUnitName - the name of the service unit
serviceUnitRootPath - the path of the exploded service unit
Returns:
true if this deployer can handle the given artifact

deploy

public ServiceUnit deploy(java.lang.String serviceUnitName,
                          java.lang.String serviceUnitRootPath)
                   throws javax.jbi.management.DeploymentException
Description copied from interface: Deployer
Actually deploys the given service unit and build a ServiceUnit object that contains endpoints.

Parameters:
serviceUnitName - the name of the service unit
serviceUnitRootPath - the path of the exploded service unit
Returns:
a service unit containing endpoints
Throws:
javax.jbi.management.DeploymentException - if an error occurs

initApplicationContext

protected void initApplicationContext(org.springframework.context.support.AbstractXmlApplicationContext applicationContext)
                               throws java.lang.Exception
Throws:
java.lang.Exception

getServices

protected java.util.Collection<Endpoint> getServices(org.springframework.context.support.AbstractXmlApplicationContext applicationContext)
                                              throws java.lang.Exception
Throws:
java.lang.Exception

createApplicationContext

protected org.apache.xbean.spring.context.FileSystemXmlApplicationContext createApplicationContext(java.lang.String serviceUnitRootPath)

getXmlPreProcessors

protected java.util.List getXmlPreProcessors(java.lang.String serviceUnitRootPath)

getBeanFactoryPostProcessors

protected java.util.List getBeanFactoryPostProcessors(java.lang.String serviceUnitRootPath)

getParentBeansMap

protected java.util.Map getParentBeansMap()


Copyright © 2005-2012 FuseSource. All Rights Reserved.