|
|||||||||
| 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()
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.
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()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||