ComponentImpl.java :  » Workflow-Engines » Dalma » dalma » endpoints » jbi » se » Java Open Source

Java Open Source » Workflow Engines » Dalma 
Dalma » dalma » endpoints » jbi » se » ComponentImpl.java
package dalma.endpoints.jbi.se;

import org.w3c.dom.Document;
import org.w3c.dom.DocumentFragment;

import javax.jbi.component.Component;
import javax.jbi.component.ComponentLifeCycle;
import javax.jbi.component.ServiceUnitManager;
import javax.jbi.component.ComponentContext;
import javax.jbi.servicedesc.ServiceEndpoint;
import javax.jbi.messaging.MessageExchange;
import javax.jbi.management.DeploymentException;
import javax.jbi.JBIException;
import javax.management.ObjectName;

/**
 * @author Kohsuke Kawaguchi
 */
public class ComponentImpl implements Component, ComponentLifeCycle, ServiceUnitManager {
    private ComponentContext context;

//
//
// Component implementation
//
//

    public ComponentLifeCycle getLifeCycle() {
        return this;
    }

    public ServiceUnitManager getServiceUnitManager() {
        return this;
    }

    public Document getServiceDescription(ServiceEndpoint endpoint) {
        return null;
    }

    public boolean isExchangeWithConsumerOkay(ServiceEndpoint endpoint, MessageExchange exchange) {
        return true;
    }

    public boolean isExchangeWithProviderOkay(ServiceEndpoint endpoint, MessageExchange exchange) {
        return true;
    }

    public ServiceEndpoint resolveEndpointReference(DocumentFragment epr) {
        return null;
    }

//
//
// ComponentLifeCycle implementation
//
//

    public ObjectName getExtensionMBeanName() {
        return null;
    }

    public void init(ComponentContext context) throws JBIException {
        this.context = context;
    }

    public void shutDown() throws JBIException {
        // called for cleaning up resources
        // TODO
        throw new UnsupportedOperationException();
    }

    public void start() throws JBIException {
        // make the engine ready to process messages
        // TODO
        throw new UnsupportedOperationException();
    }

    public void stop() throws JBIException {
        // stop processing messages
        // TODO
        throw new UnsupportedOperationException();
    }

//
//
// ServiceUnitManager implementation
//
//

    public String deploy(String serviceUnitName, String serviceUnitRootPath) throws DeploymentException {
        // TODO
        throw new UnsupportedOperationException();
    }

    public void init(String serviceUnitName, String serviceUnitRootPath) throws DeploymentException {
        // TODO
        throw new UnsupportedOperationException();
    }

    public void start(String serviceUnitName) throws DeploymentException {
        // TODO
        throw new UnsupportedOperationException();
    }

    public void stop(String serviceUnitName) throws DeploymentException {
        // TODO
        throw new UnsupportedOperationException();
    }

    public void shutDown(String serviceUnitName) throws DeploymentException {
        // TODO
        throw new UnsupportedOperationException();
    }

    public String undeploy(String serviceUnitName, String serviceUnitRootPath) throws DeploymentException {
        // TODO
        throw new UnsupportedOperationException();
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.