Oracle Fusion Middleware Java API Reference for Oracle ADF Controller
11g Release 2 (11.1.2.0.0)

E17480-01

oracle.adf.controller.metadata.model.beans
Interface ManagedBean

All Superinterfaces:
AdfcNode, IdHolder, ListEntriesHolder, MapEntriesHolder, NodeHolder, UIInfo

public interface ManagedBean
extends ListEntriesHolder, MapEntriesHolder, UIInfo

Represents metadata for a managed bean.


Method Summary
 boolean addManagedProperty(ManagedProperty property)
          Adds a new managed property to the bean definition.
 java.lang.String getBeanClass()
          Retrieves Java class type for this bean.
 ManagedBeanType getManagedBeanType()
          Determines how the managed bean should be initialized.
 java.util.List<ManagedProperty> getManagedProperties()
          A list of managed properties for this bean.
 java.lang.String getName()
          Name of the managed bean that will be used in EL expression.
 ManagedBeanScopeType getScope()
           
 boolean removeManagedProperty(ManagedProperty property)
          Removes the specified managed property from the bean definition.
 boolean setBeanClass(java.lang.String beanClass)
          Sets the new implementation class for this managed bean.
 boolean setName(java.lang.String name)
          Sets the name for this managed bean.
 boolean setScope(ManagedBeanScopeType scope)
          Sets the scope for this managed bean.
 
Methods inherited from interface oracle.adf.controller.metadata.model.beans.ListEntriesHolder
addListEntry, getListEntries, getListValueClass, removeListEntry, setListValueClass
 
Methods inherited from interface oracle.adf.controller.metadata.model.beans.MapEntriesHolder
addMapEntry, getMapEntries, getMapKeyClass, getMapValueClass, removeMapEntry, setMapKeyClass, setMapValueClass
 
Methods inherited from interface oracle.adf.controller.metadata.model.UIInfo
getDescription, getDisplayName, getLargeIcon, getSmallIcon, getUIInfo, setDescription, setDisplayName, setLargeIcon, setSmallIcon
 
Methods inherited from interface oracle.adf.controller.metadata.model.AdfcNode
getParsingContext, validate
 
Methods inherited from interface oracle.adf.controller.metadata.model.IdHolder
getIdAttribute, setIdAttribute
 
Methods inherited from interface oracle.adf.controller.metadata.model.NodeHolder
getNode
 

Method Detail

getName

java.lang.String getName()
Name of the managed bean that will be used in EL expression.

Returns:
a unique bean name

getScope

ManagedBeanScopeType getScope()
Returns:
a ManagedBeanScopeType for this bean
See Also:
ManagedBeanScopeType

getBeanClass

java.lang.String getBeanClass()
Retrieves Java class type for this bean.

Returns:
Java bean type

getManagedProperties

java.util.List<ManagedProperty> getManagedProperties()
A list of managed properties for this bean.

Returns:
a list of properties that should be managed for this bean.

getManagedBeanType

ManagedBeanType getManagedBeanType()
Determines how the managed bean should be initialized.

Returns:
the type for this bean
See Also:
ManagedBeanType

setName

boolean setName(java.lang.String name)
Sets the name for this managed bean. The name should not be null.

Parameters:
name - the new name for this managed bean
Returns:
true, if the name was set, false otherwise

setScope

boolean setScope(ManagedBeanScopeType scope)
Sets the scope for this managed bean. The scope should not be null.

Parameters:
scope - the new scope for this managed bean
Returns:
true, if the scope was set, false otherwise

setBeanClass

boolean setBeanClass(java.lang.String beanClass)
Sets the new implementation class for this managed bean. The class cannot be null.

Parameters:
beanClass - the new implementation class for this managed bean
Returns:
true, if the class was successfully set, false otherwise

addManagedProperty

boolean addManagedProperty(ManagedProperty property)
Adds a new managed property to the bean definition. Managed property should not be null.

Parameters:
property - the new managed property
Returns:
true, if the property was successfully added, false otherwise

removeManagedProperty

boolean removeManagedProperty(ManagedProperty property)
Removes the specified managed property from the bean definition. The property should not be null and it should exist in the bean definition.

Parameters:
property - the managed property to remove
Returns:
true, if the managed property was successfully removed, false otherwise.

Oracle Fusion Middleware Java API Reference for Oracle ADF Controller
11g Release 2 (11.1.2.0.0)

E17480-01

Copyright © 1997, 2011, Oracle. All rights reserved.