1 22 package org.jboss.resource.deployment; 23 24 import javax.resource.ResourceException ; 25 import javax.resource.spi.ActivationSpec ; 26 import javax.resource.spi.BootstrapContext ; 27 import javax.resource.spi.ResourceAdapter ; 28 import javax.resource.spi.ResourceAdapterInternalException ; 29 import javax.resource.spi.endpoint.MessageEndpointFactory ; 30 import javax.transaction.xa.XAResource ; 31 32 38 public class DummyResourceAdapter implements ResourceAdapter 39 { 40 public void endpointActivation(MessageEndpointFactory endpointFactory, ActivationSpec spec) throws ResourceException 41 { 42 throw new UnsupportedOperationException ("NOT SUPPORTED FOR 1.0 ADAPTERS"); 43 } 44 45 public void endpointDeactivation(MessageEndpointFactory endpointFactory, ActivationSpec spec) 46 { 47 throw new UnsupportedOperationException ("NOT SUPPORTED FOR 1.0 ADAPTERS"); 48 } 49 50 public XAResource [] getXAResources(ActivationSpec [] specs) throws ResourceException 51 { 52 return new XAResource [0]; 53 } 54 55 public void start(BootstrapContext ctx) throws ResourceAdapterInternalException 56 { 57 } 59 60 public void stop() 61 { 62 } 64 } 65 | Popular Tags |