|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.faces.spi.ManagedBeanFactory
com.sun.faces.spi.ManagedBeanFactoryWrapper
public abstract class ManagedBeanFactoryWrapper
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.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.sun.faces.spi.ManagedBeanFactory |
---|
ManagedBeanFactory.Scope |
Constructor Summary | |
---|---|
ManagedBeanFactoryWrapper()
|
Method Summary | |
---|---|
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 . |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ManagedBeanFactoryWrapper()
Method Detail |
---|
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
.
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |