org.apache.openejb.jee
Class FacesManagedBean

java.lang.Object
  extended by org.apache.openejb.jee.FacesManagedBean

public class FacesManagedBean
extends java.lang.Object

The "managed-bean" element represents a JavaBean, of a particular class, that will be dynamically instantiated at runtime (by the default VariableResolver implementation) if it is referenced as the first element of a value binding expression, and no corresponding bean can be identified in any scope. In addition to the creation of the managed bean, and the optional storing of it into the specified scope, the nested managed-property elements can be used to initialize the contents of settable JavaBeans properties of the created instance.

Java class for faces-config-managed-beanType complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="faces-config-managed-beanType">
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <group ref="{http://java.sun.com/xml/ns/javaee}descriptionGroup"/>
         <element name="managed-bean-name" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="managed-bean-class" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <element name="managed-bean-scope" type="{http://www.w3.org/2001/XMLSchema}string"/>
         <choice>
           <element name="managed-property" type="{http://java.sun.com/xml/ns/javaee}faces-config-managed-propertyType" maxOccurs="unbounded" minOccurs="0"/>
           <element name="map-entries" type="{http://java.sun.com/xml/ns/javaee}faces-config-map-entriesType"/>
           <element name="list-entries" type="{http://java.sun.com/xml/ns/javaee}faces-config-list-entriesType"/>
         </choice>
         <element name="managed-bean-extension" type="{http://java.sun.com/xml/ns/javaee}faces-config-managed-bean-extensionType" maxOccurs="unbounded" minOccurs="0"/>
       </sequence>
       <attribute name="id" type="{http://www.w3.org/2001/XMLSchema}ID" />
     </restriction>
   </complexContent>
 </complexType>
 


Field Summary
protected  java.util.List<DescriptionType> description
           
protected  java.util.List<java.lang.String> displayName
           
protected  java.util.List<Icon> icon
           
protected  java.lang.String id
           
protected  FacesListEntries listEntries
           
protected  java.lang.String managedBeanClass
           
protected  java.util.List<FacesManagedBeanExtension> managedBeanExtension
           
protected  java.lang.String managedBeanName
           
protected  java.lang.String managedBeanScope
           
protected  java.util.List<FacesManagedProperty> managedProperty
           
protected  FacesMapEntries mapEntries
           
 
Constructor Summary
FacesManagedBean()
           
 
Method Summary
 java.util.List<DescriptionType> getDescription()
          Gets the value of the description property.
 java.util.List<java.lang.String> getDisplayName()
          Gets the value of the displayName property.
 java.util.List<Icon> getIcon()
          Gets the value of the icon property.
 java.lang.String getId()
          Gets the value of the id property.
 FacesListEntries getListEntries()
          Gets the value of the listEntries property.
 java.lang.String getManagedBeanClass()
          Gets the value of the managedBeanClass property.
 java.util.List<FacesManagedBeanExtension> getManagedBeanExtension()
          Gets the value of the managedBeanExtension property.
 java.lang.String getManagedBeanName()
          Gets the value of the managedBeanName property.
 java.lang.String getManagedBeanScope()
          Gets the value of the managedBeanScope property.
 java.util.List<FacesManagedProperty> getManagedProperty()
          Gets the value of the managedProperty property.
 FacesMapEntries getMapEntries()
          Gets the value of the mapEntries property.
 void setId(java.lang.String value)
          Sets the value of the id property.
 void setListEntries(FacesListEntries value)
          Sets the value of the listEntries property.
 void setManagedBeanClass(java.lang.String value)
          Sets the value of the managedBeanClass property.
 void setManagedBeanName(java.lang.String value)
          Sets the value of the managedBeanName property.
 void setManagedBeanScope(java.lang.String value)
          Sets the value of the managedBeanScope property.
 void setMapEntries(FacesMapEntries value)
          Sets the value of the mapEntries property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

description

protected java.util.List<DescriptionType> description

displayName

protected java.util.List<java.lang.String> displayName

icon

protected java.util.List<Icon> icon

managedBeanName

protected java.lang.String managedBeanName

managedBeanClass

protected java.lang.String managedBeanClass

managedBeanScope

protected java.lang.String managedBeanScope

managedProperty

protected java.util.List<FacesManagedProperty> managedProperty

mapEntries

protected FacesMapEntries mapEntries

listEntries

protected FacesListEntries listEntries

managedBeanExtension

protected java.util.List<FacesManagedBeanExtension> managedBeanExtension

id

protected java.lang.String id
Constructor Detail

FacesManagedBean

public FacesManagedBean()
Method Detail

getDescription

public java.util.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


getDisplayName

public java.util.List<java.lang.String> getDisplayName()
Gets the value of the displayName 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 displayName property.

For example, to add a new item, do as follows:

    getDisplayName().add(newItem);
 

Objects of the following type(s) are allowed in the list String


getIcon

public java.util.List<Icon> getIcon()
Gets the value of the icon 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 icon property.

For example, to add a new item, do as follows:

    getIcon().add(newItem);
 

Objects of the following type(s) are allowed in the list Icon


getManagedBeanName

public java.lang.String getManagedBeanName()
Gets the value of the managedBeanName property.

Returns:
possible object is String

setManagedBeanName

public void setManagedBeanName(java.lang.String value)
Sets the value of the managedBeanName property.

Parameters:
value - allowed object is String

getManagedBeanClass

public java.lang.String getManagedBeanClass()
Gets the value of the managedBeanClass property.

Returns:
possible object is String

setManagedBeanClass

public void setManagedBeanClass(java.lang.String value)
Sets the value of the managedBeanClass property.

Parameters:
value - allowed object is String

getManagedBeanScope

public java.lang.String getManagedBeanScope()
Gets the value of the managedBeanScope property.

Returns:
possible object is String

setManagedBeanScope

public void setManagedBeanScope(java.lang.String value)
Sets the value of the managedBeanScope property.

Parameters:
value - allowed object is String

getManagedProperty

public java.util.List<FacesManagedProperty> getManagedProperty()
Gets the value of the managedProperty 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 managedProperty property.

For example, to add a new item, do as follows:

    getManagedProperty().add(newItem);
 

Objects of the following type(s) are allowed in the list FacesManagedProperty


getMapEntries

public FacesMapEntries getMapEntries()
Gets the value of the mapEntries property.

Returns:
possible object is FacesMapEntries

setMapEntries

public void setMapEntries(FacesMapEntries value)
Sets the value of the mapEntries property.

Parameters:
value - allowed object is FacesMapEntries

getListEntries

public FacesListEntries getListEntries()
Gets the value of the listEntries property.

Returns:
possible object is FacesListEntries

setListEntries

public void setListEntries(FacesListEntries value)
Sets the value of the listEntries property.

Parameters:
value - allowed object is FacesListEntries

getManagedBeanExtension

public java.util.List<FacesManagedBeanExtension> getManagedBeanExtension()
Gets the value of the managedBeanExtension 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 managedBeanExtension property.

For example, to add a new item, do as follows:

    getManagedBeanExtension().add(newItem);
 

Objects of the following type(s) are allowed in the list FacesManagedBeanExtension


getId

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

Returns:
possible object is String

setId

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

Parameters:
value - allowed object is String


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