Class Listener


  • public class Listener
    extends CompatibilityDescriptionGroup
    Since:
    J2EE1.4 moved from webapp Declares a class in the application must be registered as a web application listener bean. Java class for Listener complex type. The following schema fragment specifies the expected content contained within this class.
     <complexType name="Listener">
       <complexContent>
         <extension base="{common.xmi}CompatibilityDescriptionGroup">
           <choice maxOccurs="unbounded" minOccurs="0">
             <element name="listenerClass" type="{java.xmi}JavaClass"/>
           </choice>
           <attribute name="listenerClass" type="{http://www.w3.org/2001/XMLSchema}string" />
         </extension>
       </complexContent>
     </complexType>
     
    • Field Detail

      • listenerClassString

        protected String listenerClassString
    • Constructor Detail

      • Listener

        public Listener()
    • Method Detail

      • getListenerClasses

        public List<JavaClass> getListenerClasses()
        Gets the value of the listenerClasses 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 listenerClasses property. For example, to add a new item, do as follows:
         getListenerClasses().add(newItem);
         
        Objects of the following type(s) are allowed in the list JavaClass
      • getListenerClassString

        public String getListenerClassString()
        Gets the value of the listenerClassString property.
        Returns:
        possible object is String
      • setListenerClassString

        public void setListenerClassString​(String value)
        Sets the value of the listenerClassString property.
        Parameters:
        value - allowed object is String