org.springframework.jee.inject
Class InterceptionProcessor

java.lang.Object
  extended by org.springframework.jee.inject.InterceptionProcessor
All Implemented Interfaces:
MetadataProcessor

public class InterceptionProcessor
extends java.lang.Object
implements MetadataProcessor

EJB3-style interception processor. It will create new bean definitions for each interceptor found (which are later on processed for jsr250 annotations).

Author:
Rod Johnson, Costin Leau
See Also:
Jsr250Processor, InterceptionMetadata

Constructor Summary
InterceptionProcessor()
           
InterceptionProcessor(Jsr250Processor jsr250Processor)
           
 
Method Summary
protected  void addInterceptionMetadata(InterceptionMetadata metadata)
          Parse the bean and add interception metadata.
protected  void addInterceptorMetadata(InterceptionMetadata componentMetadata, java.lang.Class interceptorClass, java.lang.reflect.Method matchingMethod)
          Add the discovered InterceptorMetadata to the given Interception Metadata.
 InterceptorMetadata createInterceptorMetadata(java.lang.Class interceptorClass, java.lang.reflect.Method matchingMethod)
          Create Interceptor metadata from the given interceptor class.
 void process(Jsr250Metadata jsr250)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InterceptionProcessor

public InterceptionProcessor()

InterceptionProcessor

public InterceptionProcessor(Jsr250Processor jsr250Processor)
Method Detail

process

public void process(Jsr250Metadata jsr250)
Specified by:
process in interface MetadataProcessor

addInterceptionMetadata

protected void addInterceptionMetadata(InterceptionMetadata metadata)
Parse the bean and add interception metadata.

Parameters:
metadata -

addInterceptorMetadata

protected void addInterceptorMetadata(InterceptionMetadata componentMetadata,
                                      java.lang.Class interceptorClass,
                                      java.lang.reflect.Method matchingMethod)
Add the discovered InterceptorMetadata to the given Interception Metadata.

Parameters:
componentMetadata -
interceptorClass - interceptor class
matchingMethod - matching methdod - can be null which means we have a class interceptor

createInterceptorMetadata

public InterceptorMetadata createInterceptorMetadata(java.lang.Class interceptorClass,
                                                     java.lang.reflect.Method matchingMethod)
Create Interceptor metadata from the given interceptor class.

Parameters:
interceptorClass -
matchingMethod -
Returns:


Copyright 2006 Interface21. All Rights Reserved.