org.apache.openejb.jee.was.v6.common
Class Listener

java.lang.Object
  extended by org.apache.openejb.jee.was.v6.common.DescriptionGroup
      extended by org.apache.openejb.jee.was.v6.common.CompatibilityDescriptionGroup
          extended by org.apache.openejb.jee.was.v6.common.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 Summary
protected  List<JavaClass> listenerClasses
           
protected  String listenerClassString
           
 
Fields inherited from class org.apache.openejb.jee.was.v6.common.CompatibilityDescriptionGroup
description, displayName, largeIcon, smallIcon
 
Fields inherited from class org.apache.openejb.jee.was.v6.common.DescriptionGroup
descriptions, displayNames, extensions, href, icons, id, idref, label, type, uuid, version
 
Constructor Summary
Listener()
           
 
Method Summary
 List<JavaClass> getListenerClasses()
          Gets the value of the listenerClasses property.
 String getListenerClassString()
          Gets the value of the listenerClassString property.
 void setListenerClassString(String value)
          Sets the value of the listenerClassString property.
 
Methods inherited from class org.apache.openejb.jee.was.v6.common.CompatibilityDescriptionGroup
getDescription, getDisplayName, getLargeIcon, getSmallIcon, setDescription, setDisplayName, setLargeIcon, setSmallIcon
 
Methods inherited from class org.apache.openejb.jee.was.v6.common.DescriptionGroup
getDescriptions, getDisplayNames, getExtensions, getHref, getIcons, getId, getIdref, getLabel, getType, getUuid, getVersion, setHref, setId, setIdref, setLabel, setType, setUuid, setVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listenerClasses

protected List<JavaClass> listenerClasses

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


Copyright © 1999-2013 The Apache OpenEJB development community. All Rights Reserved.