org.ow2.orchestra.cxf
Class CxfPublisher

java.lang.Object
  extended by org.ow2.orchestra.services.impl.PublisherImpl
      extended by org.ow2.orchestra.cxf.CxfPublisher
All Implemented Interfaces:
HttpPublisher, Publisher

public class CxfPublisher
extends PublisherImpl
implements HttpPublisher

cxfServicePublisher.java. Implementation of the service publisher with cxf.

Author:
Guillaume Porcher

Field Summary
 
Fields inherited from interface org.ow2.orchestra.services.itf.Publisher
DEFAULT_KEY
 
Constructor Summary
CxfPublisher()
           
 
Method Summary
 InputStream createBundle(BpelProcess bpelProcess)
          Create an OSGI bundle from the bpel process resources.
 org.springframework.context.ApplicationContext deployBundle(InputStream bundleStream, BpelProcess bpelProcess)
          Deploy the bundle (as input stream) to the OSGi platform.
protected  void doDeploy(BpelProcess bpelProcess)
           
 org.osgi.framework.BundleContext getBundleContext()
           
 org.apache.camel.CamelContext getCamelContext(QName processQName)
           
 org.apache.cxf.Bus getCxfBus()
           
 javax.servlet.Servlet getPublisherServlet(Properties orchestraProperties)
           
 void publishServices(BpelProcess bpelProcess, Environment environment)
           
 void setCxfBus(org.apache.cxf.Bus cxfBus)
           
 void unpublishServices(BpelProcess bpelProcess, Environment environment)
           
 
Methods inherited from class org.ow2.orchestra.services.impl.PublisherImpl
addBpelProcess, addProcessEndpoint, getBpelProcess, getProcessEndpoint, getServiceOperationKeys, getServiceOperationKeys, getServices, getWsdlDefinitions, removeBpelProcess, removeProcessEndpoint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.ow2.orchestra.services.itf.Publisher
getServiceOperationKeys
 

Constructor Detail

CxfPublisher

public CxfPublisher()
Method Detail

getBundleContext

public org.osgi.framework.BundleContext getBundleContext()
Returns:
the bundleContext

getCamelContext

public org.apache.camel.CamelContext getCamelContext(QName processQName)

publishServices

public void publishServices(BpelProcess bpelProcess,
                            Environment environment)
Specified by:
publishServices in interface Publisher
Overrides:
publishServices in class PublisherImpl

createBundle

public InputStream createBundle(BpelProcess bpelProcess)
Create an OSGI bundle from the bpel process resources. Instrument the bundle so that the camel-context.xml is processed by spring-osgi-extender.

Parameters:
bpelProcess -
Returns:

deployBundle

public org.springframework.context.ApplicationContext deployBundle(InputStream bundleStream,
                                                                   BpelProcess bpelProcess)
Deploy the bundle (as input stream) to the OSGi platform. Listens for application context events. Throws an exception is the application context creation fails.

Parameters:
bundleStream - bundle (as stream)
bpelProcess -
Returns:
the application context created by this bundle

unpublishServices

public void unpublishServices(BpelProcess bpelProcess,
                              Environment environment)
Specified by:
unpublishServices in interface Publisher
Overrides:
unpublishServices in class PublisherImpl

doDeploy

protected void doDeploy(BpelProcess bpelProcess)

getPublisherServlet

public javax.servlet.Servlet getPublisherServlet(Properties orchestraProperties)
Specified by:
getPublisherServlet in interface HttpPublisher

getCxfBus

public org.apache.cxf.Bus getCxfBus()
Returns:
the cxfBus

setCxfBus

public void setCxfBus(org.apache.cxf.Bus cxfBus)
Parameters:
cxfBus - the cxfBus to set


Copyright © 2011 OW2 Consortium. All Rights Reserved.