Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jbpm.util.experimental.container
Interface Aspect  view Aspect download Aspect.java

All Superinterfaces:
Configurable, Removable

public interface Aspect
extends Configurable, Removable

is a decorator for services, also known as interceptor (jboss) or filter (servlets).

An Aspect-implementation must have the following constructor : Constructor( Container, Configuration ) throws DependancyException, ConfigurationException;

Aspects can be chained. Note that in a chain the postInvocations are called in the opposite order then the preInvocations.


Method Summary
 void postInvocation(ServiceInvocation serviceInvocation, java.lang.Throwable t)
          is executed after the service object performed the service method and before the result is given back to the client.
 void preInvocation(ServiceInvocation serviceInvocation)
          is executed between the client call and the service-method invocation on the actual service object that implements the service.
 
Methods inherited from interface org.jbpm.util.experimental.container.Configurable
getConfiguration, setConfiguration
 
Methods inherited from interface org.jbpm.util.experimental.container.Removable
addRemoveListener, removeRemoveListener, removing
 

Method Detail

preInvocation

public void preInvocation(ServiceInvocation serviceInvocation)
is executed between the client call and the service-method invocation on the actual service object that implements the service.


postInvocation

public void postInvocation(ServiceInvocation serviceInvocation,
                           java.lang.Throwable t)
is executed after the service object performed the service method and before the result is given back to the client.