net.sourceforge.ccxjc.it.model.priv.collections.valueclass.javaee
Class InterceptorBindingType

java.lang.Object
  extended by net.sourceforge.ccxjc.it.model.priv.collections.valueclass.javaee.InterceptorBindingType
All Implemented Interfaces:
Serializable, Cloneable

public class InterceptorBindingType
extends Object
implements Serializable, Cloneable

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>
 

See Also:
Serialized Form

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

description

protected List<DescriptionType> description

ejbName

protected String ejbName

interceptorClass

protected List<FullyQualifiedClassType> interceptorClass

interceptorOrder

protected InterceptorOrderType interceptorOrder

excludeDefaultInterceptors

protected TrueFalseType excludeDefaultInterceptors

excludeClassInterceptors

protected TrueFalseType excludeClassInterceptors

method

protected NamedMethodType method

id

protected String id
Constructor Detail

InterceptorBindingType

public InterceptorBindingType()
Creates a new net.sourceforge.ccxjc.it.model.priv.collections.valueclass.javaee.InterceptorBindingType instance.


InterceptorBindingType

public InterceptorBindingType(InterceptorBindingType o)
Creates a new net.sourceforge.ccxjc.it.model.priv.collections.valueclass.javaee.InterceptorBindingType instance by copying a given instance.

Parameters:
o - The instance to copy or null.
Method Detail

getDescription

public List<DescriptionType> getDescription()
Gets the value of the description property.

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


getEjbName

public String getEjbName()
Gets the value of the ejbName property.

Returns:
possible object is String

setEjbName

public void setEjbName(String value)
Sets the value of the ejbName property.

Parameters:
value - allowed object is String

getInterceptorClass

public List<FullyQualifiedClassType> getInterceptorClass()
Gets the value of the interceptorClass property.

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


getInterceptorOrder

public InterceptorOrderType getInterceptorOrder()
Gets the value of the interceptorOrder property.

Returns:
possible object is InterceptorOrderType

setInterceptorOrder

public void setInterceptorOrder(InterceptorOrderType value)
Sets the value of the interceptorOrder property.

Parameters:
value - allowed object is InterceptorOrderType

getExcludeDefaultInterceptors

public TrueFalseType getExcludeDefaultInterceptors()
Gets the value of the excludeDefaultInterceptors property.

Returns:
possible object is TrueFalseType

setExcludeDefaultInterceptors

public void setExcludeDefaultInterceptors(TrueFalseType value)
Sets the value of the excludeDefaultInterceptors property.

Parameters:
value - allowed object is TrueFalseType

getExcludeClassInterceptors

public TrueFalseType getExcludeClassInterceptors()
Gets the value of the excludeClassInterceptors property.

Returns:
possible object is TrueFalseType

setExcludeClassInterceptors

public void setExcludeClassInterceptors(TrueFalseType value)
Sets the value of the excludeClassInterceptors property.

Parameters:
value - allowed object is TrueFalseType

getMethod

public NamedMethodType getMethod()
Gets the value of the method property.

Returns:
possible object is NamedMethodType

setMethod

public void setMethod(NamedMethodType value)
Sets the value of the method property.

Parameters:
value - allowed object is NamedMethodType

getId

public String getId()
Gets the value of the id property.

Returns:
possible object is String

setId

public void setId(String value)
Sets the value of the id property.

Parameters:
value - allowed object is String

clone

public InterceptorBindingType clone()
Creates and returns a copy of this object.

Overrides:
clone in class Object
Returns:
A clone of this instance.


Copyright © 2009 The CC-XJC Community. All Rights Reserved.