javax.inject.manager
Class Interceptor

java.lang.Object
  extended by javax.inject.manager.Bean<java.lang.Object>
      extended by javax.inject.manager.Interceptor
All Implemented Interfaces:
Contextual<java.lang.Object>

public abstract class Interceptor
extends Bean<java.lang.Object>

The contract between the manager and a interceptor. This interface should not be called directly by the application.

Author:
Pete Muir

Constructor Summary
protected Interceptor(Manager manager)
          Create an interceptor bean
 
Method Summary
abstract  java.util.Set<java.lang.annotation.Annotation> getInterceptorBindingTypes()
          The interceptor bindings used to bind an interceptor to a bean
abstract  java.lang.reflect.Method getMethod(InterceptionType type)
          The interceptor method for the specified lifecycle callback or business method
 
Methods inherited from class javax.inject.manager.Bean
getBindings, getDeploymentType, getInjectionPoints, getManager, getName, getScopeType, getTypes, isNullable, isSerializable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.context.Contextual
create, destroy
 

Constructor Detail

Interceptor

protected Interceptor(Manager manager)
Create an interceptor bean

Parameters:
manager - the manager to create the interceptor for
Method Detail

getInterceptorBindingTypes

public abstract java.util.Set<java.lang.annotation.Annotation> getInterceptorBindingTypes()
The interceptor bindings used to bind an interceptor to a bean

Returns:
the interceptor bindings

getMethod

public abstract java.lang.reflect.Method getMethod(InterceptionType type)
The interceptor method for the specified lifecycle callback or business method

Parameters:
type - the interception type
Returns:
the method, or null if the interceptor does not intercept lifecycle callbacks or business methods


Copyright © 2008-2009. All Rights Reserved.