|
Oracle Fusion Middleware Oracle WebLogic Server 10.3.1 API Reference 11g Release 1 (10.3.1) Part Number E13941-02 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweblogic.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 |
Constructor Summary | |
---|---|
SuspendableAdapter()
|
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 |
Constructor Detail |
---|
public SuspendableAdapter()
Method Detail |
---|
public void start(BootstrapContext context) throws ResourceAdapterInternalException
public void start(BootstrapContext context) throws ResourceAdapterInternalException
{
}
ResourceAdapterInternalException
public void stop()
public void stop()
{
}
public void endpointActivation(MessageEndpointFactory endpointFactory, ActivationSpec spec) throws ResourceException
public void endpointActivation(MessageEndpointFactory endpointFactory, ActivationSpec spec)
throws ResourceException
{
throw new NotSupportedException();
}
ResourceException
public void endpointDeactivation(MessageEndpointFactory endpointFactory, ActivationSpec spec)
public void endpointDeactivation(MessageEndpointFactory endpointFactory, ActivationSpec spec)
{
}
public XAResource[] getXAResources(ActivationSpec[] spec) throws ResourceException
public XAResource[] getXAResources(ActivationSpec[] spec) throws ResourceException
{
throw new NotSupportedException();
}
ResourceException
public void suspend(int type, Properties props) throws ResourceException
public void suspend(int type, Properties props) throws ResourceException
{
}
suspend
in interface Suspendable
type
- 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 purposes
ResourceException
- If the resource adapter can't complete the
requestpublic void suspendInbound(MessageEndpointFactory endptFactory, Properties props) throws ResourceException
public void suspendInbound(MessageEndpointFactory endptFactory, Properties props) throws ResourceException
{
}
suspendInbound
in interface Suspendable
props
- Optional Properties (or null) to be used for ResourceAdapter
specific purposes
ResourceException
- If the resource adapter can't complete the
requestpublic void resumeInbound(MessageEndpointFactory endptFactory, Properties props) throws ResourceException
public void resumeInbound(MessageEndpointFactory endptFactory, Properties props) throws ResourceException
{
}
resumeInbound
in interface Suspendable
props
- Optional Properties (or null) to be used for ResourceAdapter
specific purposes
ResourceException
- If the resource adapter can't complete the
requestpublic void resume(int type, Properties props) throws ResourceException
public void resume(int type, Properties props) throws ResourceException
{
}
resume
in interface Suspendable
type
- 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 purposes
ResourceException
- If the resource adapter can't complete the
requestpublic boolean supportsSuspend(int type)
public boolean supportsSuspend(int type)
{
return false;
}
supportsSuspend
in interface Suspendable
type
- 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 Suspendable
type
- 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 Suspendable
ResourceException
public boolean supportsInit()
public boolean supportsInit()
{
return false;
}
supportsInit
in interface Suspendable
public 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 Suspendable
ra
- The new ResourceAdapter JavaBeanprops
- Properties associated with the versioning
when it can be undeployed
ResourceException
- If something goes wrongpublic void init(ResourceAdapter ra, Properties props) throws ResourceException
public void init(ResourceAdapter ra, Properties props) throws ResourceException
{
}
init
in interface Suspendable
ra
- The old version of the resource adapter that is currently runningprops
- Properties associated with the versioning operation
ResourceException
- If the init() fails.
|
Documentation is available at http://download.oracle.com/docs/cd/E12839_01/web.1111/wls.htm Copyright 1996, 2009, 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 Oracle WebLogic Server 10.3.1 API Reference 11g Release 1 (10.3.1) Part Number E13941-02 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |