|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.tapestry.bean.BeanProvider
public class BeanProvider
Basic implementation of the IBeanProvider
interface.
Constructor Summary | |
---|---|
BeanProvider(IComponent component)
|
Method Summary | |
---|---|
boolean |
canProvideBean(String name)
Returns true if the provider can provide the named bean. |
Object |
getBean(String name)
Returns the JavaBean with the specified name. |
Collection |
getBeanNames()
Returns a collection of the names of any beans which may be provided. |
IComponent |
getComponent()
Returns the IComponent (which may be a
IPage ) for which
this bean provider is providing beans. |
IResourceResolver |
getResourceResolver()
Returns a resource resolver. |
void |
pageBeginRender(PageEvent event)
Invoked before just before the page renders a response. |
void |
pageDetached(PageEvent event)
Removes all beans with the REQUEST lifecycle. |
void |
pageEndRender(PageEvent event)
Invoked after a successful render of the page. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BeanProvider(IComponent component)
Method Detail |
---|
public Collection getBeanNames()
IBeanProvider
getBeanNames
in interface IBeanProvider
IComponentSpecification.getBeanNames()
public IComponent getComponent()
IBeanProvider
IComponent
(which may be a
IPage
) for which
this bean provider is providing beans.
getComponent
in interface IBeanProvider
public Object getBean(String name)
IBeanProvider
getBean
in interface IBeanProvider
public void pageDetached(PageEvent event)
pageDetached
in interface PageDetachListener
public IResourceResolver getResourceResolver()
IBeanProvider
getResourceResolver
in interface IBeanProvider
public void pageBeginRender(PageEvent event)
PageRenderListener
pageBeginRender
in interface PageRenderListener
public void pageEndRender(PageEvent event)
PageRenderListener
pageEndRender
in interface PageRenderListener
AbstractComponent.pageEndRender(PageEvent)
public boolean canProvideBean(String name)
IBeanProvider
canProvideBean
in interface IBeanProvider
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |