IT. Expert System.

Java Enterprise Edition (EE)

Interceptor


javax.enterprise.inject.spi
Interface Interceptor<T>

Type Parameters:
T - the interceptor bean class
All Superinterfaces:
Bean<T>, Contextual<T>
public interface Interceptor<T>
extends Bean<T>

Represents an enabled interceptor.

Author:
Gavin King, Pete Muir, David Allen

Method Summary
 java.util.Set<java.lang.annotation.Annotation> getInterceptorBindings()
          Obtains the interceptor bindings of the interceptor.
 java.lang.Object intercept(InterceptionType type, T instance, InvocationContext ctx)
          Invokes the specified kind of lifecycle callback or method invocation interception upon the given interceptor instance.
 boolean intercepts(InterceptionType type)
          Determines if the interceptor intercepts the specified kind of lifecycle callback or method invocation.
 
Methods inherited from interface javax.enterprise.inject.spi.Bean
getBeanClass, getInjectionPoints, getName, getQualifiers, getScope, getStereotypes, getTypes, isAlternative, isNullable
 
Methods inherited from interface javax.enterprise.context.spi.Contextual
create, destroy
 

Method Detail

getInterceptorBindings

java.util.Set<java.lang.annotation.Annotation> getInterceptorBindings()

Obtains the interceptor bindings of the interceptor.

Returns:
the set of interceptor bindings

intercepts

boolean intercepts(InterceptionType type)

Determines if the interceptor intercepts the specified kind of lifecycle callback or method invocation.

Parameters:
type - the kind of interception
Returns:
returns true if the interceptor intercepts callbacks or business methods of the given type, and false otherwise.

intercept

java.lang.Object intercept(InterceptionType type,
                           T instance,
                           InvocationContext ctx)

Invokes the specified kind of lifecycle callback or method invocation interception upon the given interceptor instance.

Parameters:
type - the kind of interception
instance - the interceptor instance to invoke
ctx - the context for the invocation
Returns:
the invocation return value


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 2471 / . Delta: 0.00987 с