com.primix.tapestry.bean
Class BeanProvider
java.lang.Object
|
+--com.primix.tapestry.bean.BeanProvider
- All Implemented Interfaces:
- java.util.EventListener, IBeanProvider, PageDetachListener
- public class BeanProvider
- extends java.lang.Object
- implements IBeanProvider, PageDetachListener
Basic implementation of the IBeanProvider
interface.
- Since:
- 1.0.4
- Version:
- $Id: BeanProvider.java,v 1.4 2001/10/08 18:28:40 hship Exp $
- Author:
- Howard Ship
Method Summary |
java.lang.Object |
getBean(java.lang.String name)
Returns the JavaBean with the specified name. |
java.util.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. |
void |
pageDetached(PageEvent event)
Removes all beans with the REQUEST lifecycle. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BeanProvider
public BeanProvider(IComponent component)
getBeanNames
public java.util.Collection getBeanNames()
- Description copied from interface:
IBeanProvider
- Returns a collection of the names of any beans which may
be provided.
- Specified by:
getBeanNames
in interface IBeanProvider
- Since:
- 1.0.6
getComponent
public IComponent getComponent()
- Description copied from interface:
IBeanProvider
- Returns the
IComponent
(which may be a IPage
) for which
this bean provider is providing beans.
- Specified by:
getComponent
in interface IBeanProvider
- Since:
- 1.0.5
getBean
public java.lang.Object getBean(java.lang.String name)
- Description copied from interface:
IBeanProvider
- Returns the JavaBean with the specified name. The bean is created as needed.
- Specified by:
getBean
in interface IBeanProvider
- Following copied from interface:
com.primix.tapestry.IBeanProvider
- Throws:
ApplicationRuntimeException
- if no such bean is available.
pageDetached
public void pageDetached(PageEvent event)
- Removes all beans with the REQUEST lifecycle. If such
beans implement
IPoolable
they are stored into
the IEngine
's helper pool.
- Specified by:
pageDetached
in interface PageDetachListener