org.ow2.orchestra.cxf
Class CxfPublisher
java.lang.Object
org.ow2.orchestra.services.impl.PublisherImpl
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CxfPublisher
public CxfPublisher()
getBundleContext
public org.osgi.framework.BundleContext getBundleContext()
- Returns:
- the bundleContext
getCamelContext
public org.apache.camel.CamelContext getCamelContext(javax.xml.namespace.QName processQName)
publishServices
public void publishServices(BpelProcess bpelProcess,
Environment environment)
- Specified by:
publishServices in interface Publisher- Overrides:
publishServices in class PublisherImpl
createBundle
public java.io.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(java.io.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(java.util.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 © 2010 OW2 Consortium. All Rights Reserved.