public abstract class ManagedBeanFactoryWrapper extends ManagedBeanFactory
This is intended to be the main access point to the pluggable
ManagedBeanFactory mechanism. Subclasses must provide a
public constructor that takes a single
ManagedBeanFactory argument and stores it as an ivar,
returning it from the getWrapped() method.
ManagedBeanFactory.Scope| Constructor and Description |
|---|
ManagedBeanFactoryWrapper() |
| Modifier and Type | Method and Description |
|---|---|
ManagedBeanBean |
getManagedBeanBean()
Get the JavaBean that encapsulates the configuration data for
the bean instance to be created by this factory.
|
java.util.Map<java.lang.String,ManagedBeanFactory> |
getManagedBeanFactoryMap()
Get the
Map of managed-bean-name to
ManagedBeanFactory instances passed in a previous
call to ManagedBeanFactory.setManagedBeanFactoryMap(java.util.Map<java.lang.String, com.sun.faces.spi.ManagedBeanFactory>). |
ManagedBeanFactory.Scope |
getScope()
Return the
ManagedBeanFactory.Scope of the managed-bean created by this
factory. |
abstract ManagedBeanFactory |
getWrapped() |
boolean |
isInjectable() |
java.lang.Object |
newInstance(javax.faces.context.FacesContext context)
Return a new instance of this managed-bean.
|
void |
setManagedBeanBean(ManagedBeanBean bean)
Set the JavaBean that encapsulates the configuration data for
the bean instance to be created by this factory.
|
void |
setManagedBeanFactoryMap(java.util.Map<java.lang.String,ManagedBeanFactory> others)
Set the
Map of managed-bean-name to
ManagedBeanFactory instances into this factory
instance so that properties that are managed beans may be
instantiated if necessary. |
public abstract ManagedBeanFactory getWrapped()
public ManagedBeanFactory.Scope getScope()
ManagedBeanFactoryReturn the ManagedBeanFactory.Scope of the managed-bean created by this
factory.
getScope in class ManagedBeanFactoryManagedBeanFactory.getScope()public java.lang.Object newInstance(javax.faces.context.FacesContext context)
ManagedBeanFactoryReturn a new instance of this managed-bean. It is the
caller's responsibility to call ManagedBeanFactory.getScope() and store the
returned managed-bean in the proper scope.
newInstance in class ManagedBeanFactoryManagedBeanFactory.newInstance(javax.faces.context.FacesContext)public void setManagedBeanBean(ManagedBeanBean bean)
ManagedBeanFactorySet the JavaBean that encapsulates the configuration data for the bean instance to be created by this factory.
setManagedBeanBean in class ManagedBeanFactoryManagedBeanFactory.setManagedBeanBean(com.sun.faces.config.beans.ManagedBeanBean)public ManagedBeanBean getManagedBeanBean()
ManagedBeanFactoryGet the JavaBean that encapsulates the configuration data for the bean instance to be created by this factory.
getManagedBeanBean in class ManagedBeanFactoryManagedBeanFactory.getManagedBeanBean()public void setManagedBeanFactoryMap(java.util.Map<java.lang.String,ManagedBeanFactory> others)
ManagedBeanFactorySet the Map of managed-bean-name to
ManagedBeanFactory instances into this factory
instance so that properties that are managed beans may be
instantiated if necessary.
setManagedBeanFactoryMap in class ManagedBeanFactoryManagedBeanFactory#setManagedBeanFactoryMap(java.util.Map) public java.util.Map<java.lang.String,ManagedBeanFactory> getManagedBeanFactoryMap()
ManagedBeanFactoryGet the Map of managed-bean-name to
ManagedBeanFactory instances passed in a previous
call to ManagedBeanFactory.setManagedBeanFactoryMap(java.util.Map<java.lang.String, com.sun.faces.spi.ManagedBeanFactory>).
Note that this property enables the factory to know the complete set of configured managed-beans in this application.
getManagedBeanFactoryMap in class ManagedBeanFactoryManagedBeanFactory.getManagedBeanFactoryMap()public boolean isInjectable()
isInjectable in class ManagedBeanFactorytrue if the managed bean instance created
by this factory is a candidate for resource injection otherwise,
returns falseManagedBeanFactory.isInjectable()Copyright ? 2002-2006 Sun Microsystems, Inc. All Rights Reserved.