|
Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.2.1) Part Number E55141-01 P4 Change 1723563 on 2015/10/09 |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
weblogic.connector.extensions.SuspendableAdapter
public class SuspendableAdapter
This is a convenience class in helping to build a ResourceAdapter JavaBean class. It stubs out all methods necessary to implement a RA that implements javax.resource.spi.ResourceAdapter and weblogic.connector.extensions.Suspendable. Simply extend this class and override the methods you need to override.
| Field Summary |
|---|
| Fields inherited from interface weblogic.connector.extensions.Suspendable |
|---|
ALL, INBOUND, OUTBOUND, RESUME, SUSPEND, WORK |
| Method Summary | |
|---|---|
void |
endpointActivation(MessageEndpointFactory endpointFactory, ActivationSpec spec)public void endpointActivation(MessageEndpointFactory endpointFactory, ActivationSpec spec) throws ResourceException { throw new NotSupportedException(); } |
void |
endpointDeactivation(MessageEndpointFactory endpointFactory, ActivationSpec spec)public void endpointDeactivation(MessageEndpointFactory endpointFactory, ActivationSpec spec) { } |
XAResource[] |
getXAResources(ActivationSpec[] spec)public XAResource[] getXAResources(ActivationSpec[] spec) throws ResourceException { throw new NotSupportedException(); } |
void |
init(ResourceAdapter ra, Properties props)public void init(ResourceAdapter ra, Properties props) throws ResourceException { } |
boolean |
isInboundSuspended(MessageEndpointFactory endptFactory)public boolean isInboundSuspended(MessageEndpointFactory endptFactory) throws ResourceException { return false; } |
boolean |
isSuspended(int type)public boolean isSuspended(int type) { return false; } |
void |
resume(int type, Properties props)public void resume(int type, Properties props) throws ResourceException { } |
void |
resumeInbound(MessageEndpointFactory endptFactory, Properties props)public void resumeInbound(MessageEndpointFactory endptFactory, Properties props) throws ResourceException { } |
void |
start(BootstrapContext context)public void start(BootstrapContext context) throws ResourceAdapterInternalException { } |
void |
startVersioning(ResourceAdapter ra, Properties props)public void startVersioning(ResourceAdapter ra, Properties props) throws ResourceException { } |
void |
stop()public void stop() { } |
boolean |
supportsInit()public boolean supportsInit() { return false; } |
boolean |
supportsSuspend(int type)public boolean supportsSuspend(int type) { return false; } |
boolean |
supportsVersioning()public boolean supportsVersioning() { return false; } |
void |
suspend(int type, Properties props)public void suspend(int type, Properties props) throws ResourceException { } |
void |
suspendInbound(MessageEndpointFactory endptFactory, Properties props)public void suspendInbound(MessageEndpointFactory endptFactory, Properties props) throws ResourceException { } |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void start(BootstrapContext context)
throws ResourceAdapterInternalException
public void start(BootstrapContext context) throws ResourceAdapterInternalException { }start in interface ResourceAdapterResourceAdapterInternalExceptionpublic void stop()
public void stop() { }stop in interface ResourceAdapter
public void endpointActivation(MessageEndpointFactory endpointFactory,
ActivationSpec spec)
throws ResourceException
public void endpointActivation(MessageEndpointFactory endpointFactory, ActivationSpec spec) throws ResourceException { throw new NotSupportedException(); }endpointActivation in interface ResourceAdapterResourceException
public void endpointDeactivation(MessageEndpointFactory endpointFactory,
ActivationSpec spec)
public void endpointDeactivation(MessageEndpointFactory endpointFactory, ActivationSpec spec) { }endpointDeactivation in interface ResourceAdapter
public XAResource[] getXAResources(ActivationSpec[] spec)
throws ResourceException
public XAResource[] getXAResources(ActivationSpec[] spec) throws ResourceException { throw new NotSupportedException(); }getXAResources in interface ResourceAdapterResourceException
public void suspend(int type,
Properties props)
throws ResourceException
public void suspend(int type, Properties props) throws ResourceException { }suspend in interface Suspendabletype - An int from 1 to 7 specifying the type of suspension being requested (i.e. Suspendable.INBOUND, .OUTBOUND, .WORK or the sum of one or more of these, or the value Suspendable.ALL )props - Optional Properties (or null) to be used for ResourceAdapter specific purposesResourceException - If the resource adapter can't complete the request
public void suspendInbound(MessageEndpointFactory endptFactory,
Properties props)
throws ResourceException
public void suspendInbound(MessageEndpointFactory endptFactory, Properties props) throws ResourceException { }suspendInbound in interface SuspendableendptFactory - the factory for message endpoints that is being suspendedprops - Optional Properties (or null) to be used for ResourceAdapter specific purposesResourceException - If the resource adapter can't complete the request
public void resumeInbound(MessageEndpointFactory endptFactory,
Properties props)
throws ResourceException
public void resumeInbound(MessageEndpointFactory endptFactory, Properties props) throws ResourceException { }resumeInbound in interface SuspendableendptFactory - the factory for message endpoints that is being resumedprops - Optional Properties (or null) to be used for ResourceAdapter specific purposesResourceException - If the resource adapter can't complete the request
public void resume(int type,
Properties props)
throws ResourceException
public void resume(int type, Properties props) throws ResourceException { }resume in interface Suspendabletype - An int from 1 to 7 specifying the type of resume being requested (i.e. Suspendable.INBOUND, .OUTBOUND, .WORK or the sum of one or more of these, or the value Suspendable.ALL )props - Optional Properties (or null) to be used for ResourceAdapter specific purposesResourceException - If the resource adapter can't complete the requestpublic boolean supportsSuspend(int type)
public boolean supportsSuspend(int type) { return false; }supportsSuspend in interface Suspendabletype - An int from 1 to 7 specifying the type of suspend this inquiry is about (i.e. Suspendable.INBOUND, .OUTBOUND, .WORK or the sum of one or more of these, or the value Suspendable.ALL )public boolean isSuspended(int type)
public boolean isSuspended(int type) { return false; }isSuspended in interface Suspendabletype - An int from 1 to 7 specifying the type of activity requested (i.e. Suspendable.INBOUND, .OUTBOUND, .WORK or the sum of one or more of these, or the value Suspendable.ALL )
public boolean isInboundSuspended(MessageEndpointFactory endptFactory)
throws ResourceException
public boolean isInboundSuspended(MessageEndpointFactory endptFactory) throws ResourceException { return false; }isInboundSuspended in interface SuspendableendptFactory - the endpoint factoryResourceExceptionpublic boolean supportsInit()
public boolean supportsInit() { return false; }supportsInit in interface Suspendablepublic boolean supportsVersioning()
public boolean supportsVersioning() { return false; }supportsVersioning in interface Suspendable
public void startVersioning(ResourceAdapter ra,
Properties props)
throws ResourceException
public void startVersioning(ResourceAdapter ra, Properties props) throws ResourceException { }startVersioning in interface Suspendablera - The new ResourceAdapter JavaBeanprops - Properties associated with the versioning when it can be undeployedResourceException - If something goes wrong
public void init(ResourceAdapter ra,
Properties props)
throws ResourceException
public void init(ResourceAdapter ra, Properties props) throws ResourceException { }init in interface Suspendablera - The old version of the resource adapter that is currently runningprops - Properties associated with the versioning operationResourceException - If the init() fails.
|
Copyright 1996, 2015, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Oracle Fusion Middleware Java API Reference for Oracle WebLogic Server 12c (12.2.1) Part Number E55141-01 P4 Change 1723563 on 2015/10/09 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||