|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.ejb3.mdb.inflow.MessageInflowLocalProxy
public class MessageInflowLocalProxy
Field Summary | |
---|---|
protected boolean |
delivered
Whether we have delivered a message |
protected Thread |
inUseThread
The in use thread |
static String |
MESSAGE_ENDPOINT_FACTORY
The key for the factory |
static String |
MESSAGE_ENDPOINT_XARESOURCE
The key for the xa resource |
protected ClassLoader |
oldClassLoader
The old classloader of the thread |
protected AtomicBoolean |
released
Whether this proxy has been released |
protected Transaction |
suspended
Any suspended transaction |
protected Transaction |
transaction
Any transaction we started |
Constructor Summary | |
---|---|
protected |
MessageInflowLocalProxy(MessagingContainer container)
|
Method Summary | |
---|---|
protected void |
after(Object proxy)
After delivery processing. |
protected void |
before(Object proxy,
MessagingContainer container,
Method method,
Object[] args)
Before delivery processing. |
protected Object |
delivery(Object proxy,
MessagingContainer container,
Method method,
Object[] args)
Delivery. |
protected void |
endTransaction(Object proxy,
boolean commit)
End the transaction |
protected void |
finish(String context,
Object proxy,
boolean commit)
Finish the current delivery |
protected MessagingContainer |
getContainer(org.jboss.aop.joinpoint.Invocation mi)
Get the container |
protected JBossMessageEndpointFactory |
getMessageEndpointFactory(org.jboss.aop.joinpoint.Invocation invocation)
Get the message endpoint factory |
protected String |
getProxyString(Object proxy)
Get our proxy's string value. |
Object |
invoke(Object proxy,
Method method,
Object[] args)
|
protected void |
release(Object proxy)
Release this message endpoint. |
protected void |
releaseThreadLock(Object proxy)
Release the thread lock |
protected void |
resetContextClassLoader(Object proxy)
Reset the context classloader |
void |
setMessageEndpointFactory(javax.resource.spi.endpoint.MessageEndpointFactory messageEndpointFactory)
|
void |
setXaResource(XAResource resource)
|
protected void |
startTransaction(String context,
Object proxy,
MessagingContainer container,
Method m,
Object[] args,
boolean isTransacted)
Start a transaction |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String MESSAGE_ENDPOINT_FACTORY
public static final String MESSAGE_ENDPOINT_XARESOURCE
protected AtomicBoolean released
protected boolean delivered
protected Thread inUseThread
protected ClassLoader oldClassLoader
protected Transaction transaction
protected Transaction suspended
Constructor Detail |
---|
protected MessageInflowLocalProxy(MessagingContainer container)
Method Detail |
---|
public void setMessageEndpointFactory(javax.resource.spi.endpoint.MessageEndpointFactory messageEndpointFactory)
public void setXaResource(XAResource resource)
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
invoke
in interface InvocationHandler
Throwable
public String toString()
toString
in class Object
protected void release(Object proxy) throws Throwable
mi
- the invocation
Throwable
- for any errorprotected void before(Object proxy, MessagingContainer container, Method method, Object[] args) throws Throwable
mi
- the invocation
Throwable
- for any errorprotected void after(Object proxy) throws Throwable
mi
- the invocation
Throwable
- for any errorprotected Object delivery(Object proxy, MessagingContainer container, Method method, Object[] args) throws Throwable
mi
- the invocation
Throwable
- for any errorprotected void finish(String context, Object proxy, boolean commit) throws Throwable
context
- the lifecycle methodmi
- the invocationcommit
- whether to commit
Throwable
- for any errorprotected void startTransaction(String context, Object proxy, MessagingContainer container, Method m, Object[] args, boolean isTransacted) throws Throwable
context
- the lifecycle methodmi
- the invocationcontainer
- the container
Throwable
- for any errorprotected void endTransaction(Object proxy, boolean commit) throws Throwable
mi
- the invocationcommit
- whether to try to commit
Throwable
- for any errorprotected void resetContextClassLoader(Object proxy)
mi
- the invocationprotected void releaseThreadLock(Object proxy)
mi
- the invocationprotected String getProxyString(Object proxy)
mi
- the invocation
protected JBossMessageEndpointFactory getMessageEndpointFactory(org.jboss.aop.joinpoint.Invocation invocation)
protected MessagingContainer getContainer(org.jboss.aop.joinpoint.Invocation mi)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |