|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.ejb.plugins.AbstractInterceptor
public abstract class AbstractInterceptor
An abstract base class for container interceptors.
Field Summary | |
---|---|
protected Container |
container
The container the interceptor is associated with |
protected org.jboss.logging.Logger |
log
Logging instance |
protected Interceptor |
nextInterceptor
The next interceptor in the chain. |
Constructor Summary | |
---|---|
AbstractInterceptor()
|
Method Summary | |
---|---|
void |
create()
|
void |
destroy()
|
Container |
getContainer()
|
Interceptor |
getNext()
Get the next interceptor in the chain. |
Object |
invoke(Invocation mi)
??? |
Object |
invokeHome(Invocation mi)
??? |
boolean |
isAppException(Invocation invocation,
Throwable e)
See if the given exception e is compatible with an exception declared as thrown by the invocation method. |
void |
setContainer(Container container)
This callback is set by the container so that the plugin may access it |
void |
setNext(Interceptor interceptor)
Set the next interceptor in the chain. |
void |
start()
|
void |
stop()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Interceptor nextInterceptor
protected org.jboss.logging.Logger log
protected Container container
Constructor Detail |
---|
public AbstractInterceptor()
Method Detail |
---|
public void setContainer(Container container)
ContainerPlugin
setContainer
in interface ContainerPlugin
container
- The container using this plugin. This may be null if the
plugin is being disassociated from a container.public Container getContainer()
public void setNext(Interceptor interceptor)
Interceptor
setNext
in interface Interceptor
interceptor
- The next interceptor in the chain.public Interceptor getNext()
Interceptor
getNext
in interface Interceptor
public void create() throws Exception
create
in interface org.jboss.system.Service
Exception
public void start() throws Exception
start
in interface org.jboss.system.Service
Exception
public void stop()
stop
in interface org.jboss.system.Service
public void destroy()
destroy
in interface org.jboss.system.Service
public Object invokeHome(Invocation mi) throws Exception
Interceptor
invokeHome
in interface Interceptor
mi
- ???
Exception
- ???public Object invoke(Invocation mi) throws Exception
Interceptor
invoke
in interface Interceptor
mi
- ???
Exception
- ???public boolean isAppException(Invocation invocation, Throwable e)
invocation
- - the current invocatione
- - the exception thrown by the invocation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |