com.primix.tapestry
Interface IBeanProvider
- All Known Implementing Classes:
- BeanProvider
- public interface IBeanProvider
An object that provides a component with access to helper beans.
Helper beans are JavaBeans associated with a page or component
that are used to extend the functionality of the component via
aggregation.
- Since:
- 1.0.4
- Version:
- $Id: IBeanProvider.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. |
getBean
public java.lang.Object getBean(java.lang.String name)
- Returns the JavaBean with the specified name. The bean is created as needed.
- Throws:
ApplicationRuntimeException
- if no such bean is available.
getComponent
public IComponent getComponent()
- Returns the
IComponent
(which may be a IPage
) for which
this bean provider is providing beans.
- Since:
- 1.0.5
getBeanNames
public java.util.Collection getBeanNames()
- Returns a collection of the names of any beans which may
be provided.
- Since:
- 1.0.6
- See Also:
ComponentSpecification#getBeanNames()