|
|||||||||
| 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 java.lang.Thread |
inUseThread
The in use thread |
static java.lang.String |
MESSAGE_ENDPOINT_FACTORY
The key for the factory |
static java.lang.String |
MESSAGE_ENDPOINT_XARESOURCE
The key for the xa resource |
protected java.lang.ClassLoader |
oldClassLoader
The old classloader of the thread |
protected java.util.concurrent.atomic.AtomicBoolean |
released
Whether this proxy has been released |
protected javax.transaction.Transaction |
suspended
Any suspended transaction |
protected javax.transaction.Transaction |
transaction
Any transaction we started |
| Constructor Summary | |
|---|---|
protected |
MessageInflowLocalProxy(MessagingContainer container)
|
| Method Summary | |
|---|---|
protected void |
after(java.lang.Object proxy)
After delivery processing. |
protected void |
before(java.lang.Object proxy,
MessagingContainer container,
java.lang.reflect.Method method,
java.lang.Object[] args)
Before delivery processing. |
protected java.lang.Object |
delivery(java.lang.Object proxy,
MessagingContainer container,
java.lang.reflect.Method method,
java.lang.Object[] args)
Delivery. |
protected void |
endTransaction(java.lang.Object proxy,
boolean commit)
End the transaction |
protected void |
finish(java.lang.String context,
java.lang.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 java.lang.String |
getProxyString(java.lang.Object proxy)
Get our proxy's string value. |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
|
protected void |
release(java.lang.Object proxy)
Release this message endpoint. |
protected void |
releaseThreadLock(java.lang.Object proxy)
Release the thread lock |
protected void |
resetContextClassLoader(java.lang.Object proxy)
Reset the context classloader |
void |
setMessageEndpointFactory(javax.resource.spi.endpoint.MessageEndpointFactory messageEndpointFactory)
|
void |
setXaResource(javax.transaction.xa.XAResource resource)
|
protected void |
startTransaction(java.lang.String context,
java.lang.Object proxy,
MessagingContainer container,
java.lang.reflect.Method m,
java.lang.Object[] args,
boolean isTransacted)
Start a transaction |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String MESSAGE_ENDPOINT_FACTORY
public static final java.lang.String MESSAGE_ENDPOINT_XARESOURCE
protected java.util.concurrent.atomic.AtomicBoolean released
protected boolean delivered
protected java.lang.Thread inUseThread
protected java.lang.ClassLoader oldClassLoader
protected javax.transaction.Transaction transaction
protected javax.transaction.Transaction suspended
| Constructor Detail |
|---|
protected MessageInflowLocalProxy(MessagingContainer container)
| Method Detail |
|---|
public void setMessageEndpointFactory(javax.resource.spi.endpoint.MessageEndpointFactory messageEndpointFactory)
public void setXaResource(javax.transaction.xa.XAResource resource)
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlerjava.lang.Throwablepublic java.lang.String toString()
toString in class java.lang.Object
protected void release(java.lang.Object proxy)
throws java.lang.Throwable
mi - the invocation
java.lang.Throwable - for any error
protected void before(java.lang.Object proxy,
MessagingContainer container,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
mi - the invocation
java.lang.Throwable - for any error
protected void after(java.lang.Object proxy)
throws java.lang.Throwable
mi - the invocation
java.lang.Throwable - for any error
protected java.lang.Object delivery(java.lang.Object proxy,
MessagingContainer container,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
mi - the invocation
java.lang.Throwable - for any error
protected void finish(java.lang.String context,
java.lang.Object proxy,
boolean commit)
throws java.lang.Throwable
context - the lifecycle methodmi - the invocationcommit - whether to commit
java.lang.Throwable - for any error
protected void startTransaction(java.lang.String context,
java.lang.Object proxy,
MessagingContainer container,
java.lang.reflect.Method m,
java.lang.Object[] args,
boolean isTransacted)
throws java.lang.Throwable
context - the lifecycle methodmi - the invocationcontainer - the container
java.lang.Throwable - for any error
protected void endTransaction(java.lang.Object proxy,
boolean commit)
throws java.lang.Throwable
mi - the invocationcommit - whether to try to commit
java.lang.Throwable - for any errorprotected void resetContextClassLoader(java.lang.Object proxy)
mi - the invocationprotected void releaseThreadLock(java.lang.Object proxy)
mi - the invocationprotected java.lang.String getProxyString(java.lang.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 | ||||||||