|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.ccxjc.it.model.priv.collections.valueclass.javaee.InterceptorBindingType
public class InterceptorBindingType
The interceptor-bindingType element describes the binding of interceptor classes to beans within the ejb-jar. It consists of : - An optional description. - The name of an ejb within the ejb-jar or the wildcard value "*", which is used to define interceptors that are bound to all beans in the ejb-jar. - A list of interceptor classes that are bound to the contents of the ejb-name element or a specification of the total ordering over the interceptors defined for the given level and above. - An optional exclude-default-interceptors element. If set to true, specifies that default interceptors are not to be applied to a bean-class and/or business method. - An optional exclude-class-interceptors element. If set to true, specifies that class interceptors are not to be applied to a business method. - An optional set of method elements for describing the name/params of a method-level interceptor. Interceptors bound to all classes using the wildcard syntax "*" are default interceptors for the components in the ejb-jar. In addition, interceptors may be bound at the level of the bean class (class-level interceptors) or business methods (method-level interceptors ). The binding of interceptors to classes is additive. If interceptors are bound at the class-level and/or default-level as well as the method-level, both class-level and/or default-level as well as method-level will apply. There are four possible styles of the interceptor element syntax : 1.
<?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>
| Field Summary | |
|---|---|
protected List<DescriptionType> |
description
|
protected String |
ejbName
|
protected TrueFalseType |
excludeClassInterceptors
|
protected TrueFalseType |
excludeDefaultInterceptors
|
protected String |
id
|
protected List<FullyQualifiedClassType> |
interceptorClass
|
protected InterceptorOrderType |
interceptorOrder
|
protected NamedMethodType |
method
|
| Constructor Summary | |
|---|---|
InterceptorBindingType()
Creates a new net.sourceforge.ccxjc.it.model.priv.collections.valueclass.javaee.InterceptorBindingType instance. |
|
InterceptorBindingType(InterceptorBindingType o)
Creates a new net.sourceforge.ccxjc.it.model.priv.collections.valueclass.javaee.InterceptorBindingType instance by copying a given instance. |
|
| Method Summary | |
|---|---|
InterceptorBindingType |
clone()
Creates and returns a copy of this object. |
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. |
String |
getId()
Gets the value of the id property. |
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(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. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected List<DescriptionType> description
protected String ejbName
protected List<FullyQualifiedClassType> interceptorClass
protected InterceptorOrderType interceptorOrder
protected TrueFalseType excludeDefaultInterceptors
protected TrueFalseType excludeClassInterceptors
protected NamedMethodType method
protected String id
| Constructor Detail |
|---|
public InterceptorBindingType()
net.sourceforge.ccxjc.it.model.priv.collections.valueclass.javaee.InterceptorBindingType instance.
public InterceptorBindingType(InterceptorBindingType o)
net.sourceforge.ccxjc.it.model.priv.collections.valueclass.javaee.InterceptorBindingType instance by copying a given instance.
o - The instance to copy or null.| Method Detail |
|---|
public 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 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 String getId()
Stringpublic void setId(String value)
value - allowed object is
Stringpublic InterceptorBindingType clone()
clone in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||