001: package dalma.endpoints.jbi.se;
002:
003: import org.w3c.dom.Document;
004: import org.w3c.dom.DocumentFragment;
005:
006: import javax.jbi.component.Component;
007: import javax.jbi.component.ComponentLifeCycle;
008: import javax.jbi.component.ServiceUnitManager;
009: import javax.jbi.component.ComponentContext;
010: import javax.jbi.servicedesc.ServiceEndpoint;
011: import javax.jbi.messaging.MessageExchange;
012: import javax.jbi.management.DeploymentException;
013: import javax.jbi.JBIException;
014: import javax.management.ObjectName;
015:
016: /**
017: * @author Kohsuke Kawaguchi
018: */
019: public class ComponentImpl implements Component, ComponentLifeCycle,
020: ServiceUnitManager {
021: private ComponentContext context;
022:
023: //
024: //
025: // Component implementation
026: //
027: //
028:
029: public ComponentLifeCycle getLifeCycle() {
030: return this ;
031: }
032:
033: public ServiceUnitManager getServiceUnitManager() {
034: return this ;
035: }
036:
037: public Document getServiceDescription(ServiceEndpoint endpoint) {
038: return null;
039: }
040:
041: public boolean isExchangeWithConsumerOkay(ServiceEndpoint endpoint,
042: MessageExchange exchange) {
043: return true;
044: }
045:
046: public boolean isExchangeWithProviderOkay(ServiceEndpoint endpoint,
047: MessageExchange exchange) {
048: return true;
049: }
050:
051: public ServiceEndpoint resolveEndpointReference(DocumentFragment epr) {
052: return null;
053: }
054:
055: //
056: //
057: // ComponentLifeCycle implementation
058: //
059: //
060:
061: public ObjectName getExtensionMBeanName() {
062: return null;
063: }
064:
065: public void init(ComponentContext context) throws JBIException {
066: this .context = context;
067: }
068:
069: public void shutDown() throws JBIException {
070: // called for cleaning up resources
071: // TODO
072: throw new UnsupportedOperationException();
073: }
074:
075: public void start() throws JBIException {
076: // make the engine ready to process messages
077: // TODO
078: throw new UnsupportedOperationException();
079: }
080:
081: public void stop() throws JBIException {
082: // stop processing messages
083: // TODO
084: throw new UnsupportedOperationException();
085: }
086:
087: //
088: //
089: // ServiceUnitManager implementation
090: //
091: //
092:
093: public String deploy(String serviceUnitName,
094: String serviceUnitRootPath) throws DeploymentException {
095: // TODO
096: throw new UnsupportedOperationException();
097: }
098:
099: public void init(String serviceUnitName, String serviceUnitRootPath)
100: throws DeploymentException {
101: // TODO
102: throw new UnsupportedOperationException();
103: }
104:
105: public void start(String serviceUnitName)
106: throws DeploymentException {
107: // TODO
108: throw new UnsupportedOperationException();
109: }
110:
111: public void stop(String serviceUnitName) throws DeploymentException {
112: // TODO
113: throw new UnsupportedOperationException();
114: }
115:
116: public void shutDown(String serviceUnitName)
117: throws DeploymentException {
118: // TODO
119: throw new UnsupportedOperationException();
120: }
121:
122: public String undeploy(String serviceUnitName,
123: String serviceUnitRootPath) throws DeploymentException {
124: // TODO
125: throw new UnsupportedOperationException();
126: }
127: }
|