| DummyResourceAdapter.java |
/*
* JBoss, the OpenSource J2EE webOS
*
* Distributable under LGPL license.
* See terms of license at gnu.org.
*/
package org.jboss.resource.deployment;
import javax.resource.ResourceException;
import javax.resource.spi.ActivationSpec;
import javax.resource.spi.BootstrapContext;
import javax.resource.spi.ResourceAdapter;
import javax.resource.spi.ResourceAdapterInternalException;
import javax.resource.spi.endpoint.MessageEndpointFactory;
import javax.transaction.xa.XAResource;
/**
* A dummy resource adapter for old deployments
*
* @author <a href="adrian@jboss.com">Adrian Brock</a>
* @version $Revision: 1.2.6.1 $
*/
public class DummyResourceAdapter implements ResourceAdapter
{
// Constants -----------------------------------------------------
// Attributes ----------------------------------------------------
// Static --------------------------------------------------------
// Constructors --------------------------------------------------
// Public --------------------------------------------------------
// ResourceAdapter implementation --------------------------------
public void endpointActivation(MessageEndpointFactory endpointFactory, ActivationSpec spec) throws ResourceException
{
throw new UnsupportedOperationException("NOT SUPPORTED FOR 1.0 ADAPTERS");
}
public void endpointDeactivation(MessageEndpointFactory endpointFactory, ActivationSpec spec)
{
throw new UnsupportedOperationException("NOT SUPPORTED FOR 1.0 ADAPTERS");
}
public XAResource[] getXAResources(ActivationSpec[] specs) throws ResourceException
{
return new XAResource[0];
}
public void start(BootstrapContext ctx) throws ResourceAdapterInternalException
{
// TODO start
}
public void stop()
{
// TODO stop
}
// Package protected ---------------------------------------------
// Protected -----------------------------------------------------
// Private -------------------------------------------------------
// Inner classes -------------------------------------------------
}
| DummyResourceAdapter.java |