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
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.
 org.apache.hivemind.ClassResolver getClassResolver()
          Returns a resource resolver.
 IComponent getComponent()
          Returns the IComponent (which may be a IPage) for which this bean provider is providing beans.
 

Method Detail

getBean

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

Throws:
org.apache.hivemind.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

getClassResolver

org.apache.hivemind.ClassResolver getClassResolver()
Returns a resource resolver.

Since:
1.0.8


Copyright © 2006-2008 Apache Software Foundation. All Rights Reserved.