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()
ManagedBeanFactory
Return the ManagedBeanFactory.Scope
of the managed-bean created by this
factory.
getScope
in class ManagedBeanFactory
ManagedBeanFactory.getScope()
public java.lang.Object newInstance(javax.faces.context.FacesContext context)
ManagedBeanFactory
Return 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 ManagedBeanFactory
ManagedBeanFactory.newInstance(javax.faces.context.FacesContext)
public void setManagedBeanBean(ManagedBeanBean bean)
ManagedBeanFactory
Set the JavaBean that encapsulates the configuration data for the bean instance to be created by this factory.
setManagedBeanBean
in class ManagedBeanFactory
ManagedBeanFactory.setManagedBeanBean(com.sun.faces.config.beans.ManagedBeanBean)
public ManagedBeanBean getManagedBeanBean()
ManagedBeanFactory
Get the JavaBean that encapsulates the configuration data for the bean instance to be created by this factory.
getManagedBeanBean
in class ManagedBeanFactory
ManagedBeanFactory.getManagedBeanBean()
public void setManagedBeanFactoryMap(java.util.Map<java.lang.String,ManagedBeanFactory> others)
ManagedBeanFactory
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.
setManagedBeanFactoryMap
in class ManagedBeanFactory
ManagedBeanFactory#setManagedBeanFactoryMap(java.util.Map)
public java.util.Map<java.lang.String,ManagedBeanFactory> getManagedBeanFactoryMap()
ManagedBeanFactory
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>)
.
Note that this property enables the factory to know the complete set of configured managed-beans in this application.
getManagedBeanFactoryMap
in class ManagedBeanFactory
ManagedBeanFactory.getManagedBeanFactoryMap()
public boolean isInjectable()
isInjectable
in class ManagedBeanFactory
true
if the managed bean instance created
by this factory is a candidate for resource injection otherwise,
returns false
ManagedBeanFactory.isInjectable()
Copyright ? 2002-2006 Sun Microsystems, Inc. All Rights Reserved.