public class InterceptorBindingType
extends java.lang.Object
<?xml version="1.0" encoding="UTF-8"?><interceptor-binding xmlns="http://www.w3.org/2001/XMLSchema" xmlns:javaee="http://java.sun.com/xml/ns/javaee" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ejb-name>*</ejb-name><interceptor-class>INTERCEPTOR</interceptor-class></interceptor-binding>Specifying the ejb-name as the wildcard value "*" designates default interceptors (interceptors that apply to all session and message-driven beans contained in the ejb-jar). 2.
<?xml version="1.0" encoding="UTF-8"?><interceptor-binding xmlns="http://www.w3.org/2001/XMLSchema" xmlns:javaee="http://java.sun.com/xml/ns/javaee" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ejb-name>EJBNAME</ejb-name><interceptor-class>INTERCEPTOR</interceptor-class></interceptor-binding>This style is used to refer to interceptors associated with the specified enterprise bean(class-level interceptors). 3.
<?xml version="1.0" encoding="UTF-8"?><interceptor-binding xmlns="http://www.w3.org/2001/XMLSchema" xmlns:javaee="http://java.sun.com/xml/ns/javaee" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ejb-name>EJBNAME</ejb-name><interceptor-class>INTERCEPTOR</interceptor-class><method><method-name>METHOD</method-name></method></interceptor-binding>This style is used to associate a method-level interceptor with the specified enterprise bean. If there are multiple methods with the same overloaded name, the element of this style refers to all the methods with the overloaded name. Method-level interceptors can only be associated with business methods of the bean class. Note that the wildcard value "*" cannot be used to specify method-level interceptors. 4.
<?xml version="1.0" encoding="UTF-8"?><interceptor-binding xmlns="http://www.w3.org/2001/XMLSchema" xmlns:javaee="http://java.sun.com/xml/ns/javaee" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><ejb-name>EJBNAME</ejb-name><interceptor-class>INTERCEPTOR</interceptor-class><method><method-name>METHOD</method-name><method-params><method-param>PARAM-1</method-param><method-param>PARAM-2</method-param>
...
<method-param>PARAM-N</method-param></method-params></method></interceptor-binding>
This style is used to associate a method-level interceptor with
the specified method of the specified enterprise bean. This
style is used to refer to a single method within a set of methods
with an overloaded name. The values PARAM-1 through PARAM-N
are the fully-qualified Java types of the method's input parameters
(if the method has no input arguments, the method-params element
contains no method-param elements). Arrays are specified by the
array element's type, followed by one or more pair of square
brackets (e.g. int[][]).
Java class for interceptor-bindingType complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="interceptor-bindingType">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="description" type="{http://java.sun.com/xml/ns/javaee}descriptionType" maxOccurs="unbounded" minOccurs="0"/>
<element name="ejb-name" type="{http://java.sun.com/xml/ns/javaee}string"/>
<choice>
<element name="interceptor-class" type="{http://java.sun.com/xml/ns/javaee}fully-qualified-classType" maxOccurs="unbounded" minOccurs="0"/>
<element name="interceptor-order" type="{http://java.sun.com/xml/ns/javaee}interceptor-orderType"/>
</choice>
<element name="exclude-default-interceptors" type="{http://java.sun.com/xml/ns/javaee}true-falseType" minOccurs="0"/>
<element name="exclude-class-interceptors" type="{http://java.sun.com/xml/ns/javaee}true-falseType" minOccurs="0"/>
<element name="method" type="{http://java.sun.com/xml/ns/javaee}named-methodType" minOccurs="0"/>
</sequence>
<attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected java.util.List<DescriptionType> |
description |
protected String |
ejbName |
protected TrueFalseType |
excludeClassInterceptors |
protected TrueFalseType |
excludeDefaultInterceptors |
protected java.lang.String |
id |
protected java.util.List<FullyQualifiedClassType> |
interceptorClass |
protected InterceptorOrderType |
interceptorOrder |
protected NamedMethodType |
method |
| Constructor and Description |
|---|
InterceptorBindingType() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<DescriptionType> |
getDescription()
Gets the value of the description property.
|
String |
getEjbName()
Gets the value of the ejbName property.
|
TrueFalseType |
getExcludeClassInterceptors()
Gets the value of the excludeClassInterceptors property.
|
TrueFalseType |
getExcludeDefaultInterceptors()
Gets the value of the excludeDefaultInterceptors property.
|
java.lang.String |
getId()
Gets the value of the id property.
|
java.util.List<FullyQualifiedClassType> |
getInterceptorClass()
Gets the value of the interceptorClass property.
|
InterceptorOrderType |
getInterceptorOrder()
Gets the value of the interceptorOrder property.
|
NamedMethodType |
getMethod()
Gets the value of the method property.
|
void |
setEjbName(String value)
Sets the value of the ejbName property.
|
void |
setExcludeClassInterceptors(TrueFalseType value)
Sets the value of the excludeClassInterceptors property.
|
void |
setExcludeDefaultInterceptors(TrueFalseType value)
Sets the value of the excludeDefaultInterceptors property.
|
void |
setId(java.lang.String value)
Sets the value of the id property.
|
void |
setInterceptorOrder(InterceptorOrderType value)
Sets the value of the interceptorOrder property.
|
void |
setMethod(NamedMethodType value)
Sets the value of the method property.
|
protected java.util.List<DescriptionType> description
protected String ejbName
protected java.util.List<FullyQualifiedClassType> interceptorClass
protected InterceptorOrderType interceptorOrder
protected TrueFalseType excludeDefaultInterceptors
protected TrueFalseType excludeClassInterceptors
protected NamedMethodType method
protected java.lang.String id
public java.util.List<DescriptionType> getDescription()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the description property.
For example, to add a new item, do as follows:
getDescription().add(newItem);
Objects of the following type(s) are allowed in the list
DescriptionType
public String getEjbName()
Stringpublic void setEjbName(String value)
value - allowed object is
Stringpublic java.util.List<FullyQualifiedClassType> getInterceptorClass()
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a set method for the interceptorClass property.
For example, to add a new item, do as follows:
getInterceptorClass().add(newItem);
Objects of the following type(s) are allowed in the list
FullyQualifiedClassType
public InterceptorOrderType getInterceptorOrder()
InterceptorOrderTypepublic void setInterceptorOrder(InterceptorOrderType value)
value - allowed object is
InterceptorOrderTypepublic TrueFalseType getExcludeDefaultInterceptors()
TrueFalseTypepublic void setExcludeDefaultInterceptors(TrueFalseType value)
value - allowed object is
TrueFalseTypepublic TrueFalseType getExcludeClassInterceptors()
TrueFalseTypepublic void setExcludeClassInterceptors(TrueFalseType value)
value - allowed object is
TrueFalseTypepublic NamedMethodType getMethod()
NamedMethodTypepublic void setMethod(NamedMethodType value)
value - allowed object is
NamedMethodTypepublic java.lang.String getId()
Stringpublic void setId(java.lang.String value)
value - allowed object is
String