org.apache.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 243791 2004-02-19 17:38:13Z hlship $
Author:
Howard Lewis Ship

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.
 

Method Detail

getBean

Object getBean(String name)
Returns the JavaBean with the specified name. The bean is created as needed.

Throws:
ApplicationRuntimeException - if no such bean is available.

getComponent

IComponent getComponent()
Returns the IComponent (which may be a IPage) for which this bean provider is providing beans.

Since:
1.0.5

getBeanNames

Collection getBeanNames()
Returns a collection of the names of any beans which may be provided.

Since:
1.0.6
See Also:
IComponentSpecification.getBeanNames()

canProvideBean

boolean canProvideBean(String name)
Returns true if the provider can provide the named bean.

Since:
2.2

getResourceResolver

IResourceResolver getResourceResolver()
Returns a resource resolver.

Since:
1.0.8