org.ow2.jasmine.monitoring.eventswitch
Class MuleWrapper

java.lang.Object
  extended by org.ow2.jasmine.monitoring.eventswitch.MuleWrapper
All Implemented Interfaces:
javax.resource.spi.ResourceAdapter

public class MuleWrapper
extends java.lang.Object
implements javax.resource.spi.ResourceAdapter

Wrapper class for Mule.


Constructor Summary
MuleWrapper()
           
 
Method Summary
 void endpointActivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory, javax.resource.spi.ActivationSpec spec)
          Empty implementation of inherited abstract method.
 void endpointDeactivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory, javax.resource.spi.ActivationSpec spec)
          Empty implementation of inherited abstract method.
 javax.transaction.xa.XAResource[] getXAResources(javax.resource.spi.ActivationSpec[] specs)
          Empty implementation of inherited abstract method.
static void main(java.lang.String[] args)
          Launches the MuleServer's main method with the given arguments and enters an infinite loop.
 void start(javax.resource.spi.BootstrapContext ctx)
          Implements inherited abstract method.
 void stop()
          Implements inherited abstract method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MuleWrapper

public MuleWrapper()
Method Detail

main

public static void main(java.lang.String[] args)
Launches the MuleServer's main method with the given arguments and enters an infinite loop.

Parameters:
args - Command-line arguments to pass to the MuleServer.
See Also:
MuleServer.main(String[])

start

public void start(javax.resource.spi.BootstrapContext ctx)
           throws javax.resource.spi.ResourceAdapterInternalException
Implements inherited abstract method. Configures Mule, which will automatically launch it.

Specified by:
start in interface javax.resource.spi.ResourceAdapter
Parameters:
ctx - Bootstrap context containing references to useful facilities that could be used by a resource adapter instance.
Throws:
javax.resource.spi.ResourceAdapterInternalException - Bootstrap failure. The resource adapter instance is unusable and must be discarded.

stop

public void stop()
Implements inherited abstract method. Disposes of Mule.

Specified by:
stop in interface javax.resource.spi.ResourceAdapter

endpointActivation

public void endpointActivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory,
                               javax.resource.spi.ActivationSpec spec)
                        throws javax.resource.ResourceException
Empty implementation of inherited abstract method.

Specified by:
endpointActivation in interface javax.resource.spi.ResourceAdapter
Throws:
javax.resource.ResourceException
See Also:
ResourceAdapter.endpointActivation(MessageEndpointFactory, ActivationSpec)

endpointDeactivation

public void endpointDeactivation(javax.resource.spi.endpoint.MessageEndpointFactory endpointFactory,
                                 javax.resource.spi.ActivationSpec spec)
Empty implementation of inherited abstract method.

Specified by:
endpointDeactivation in interface javax.resource.spi.ResourceAdapter
See Also:
ResourceAdapter.endpointDeactivation(MessageEndpointFactory, ActivationSpec)

getXAResources

public javax.transaction.xa.XAResource[] getXAResources(javax.resource.spi.ActivationSpec[] specs)
                                                 throws javax.resource.ResourceException
Empty implementation of inherited abstract method.

Specified by:
getXAResources in interface javax.resource.spi.ResourceAdapter
Throws:
javax.resource.ResourceException
See Also:
ResourceAdapter.getXAResources(ActivationSpec[])


Copyright © 2008 OW2 Consortium. All Rights Reserved.