Novell exteNd
Director 5.2 API

com.sssw.fw.resource.api
Interface EbiResourceBeanWrapper


public interface EbiResourceBeanWrapper

This interface is implemented by JavaBeans that act as UI stand-ins for one or more 'custom' or user-defined JavaBeans. The class that implements this interface will be asked by the UI container to supply the names of any beans for which it is a stand-in, and will also be called on to instantiate instances of those beans.


Method Summary
 String[] getAdditionalBeanNames()
          Gets the names of the beans that this wrapper object is able to instantiate.
 Object instantiateBean(String beanName, BeanContext beanContext)
          Instantiate a bean known to this object.
 

Method Detail

getAdditionalBeanNames

public String[] getAdditionalBeanNames()
                                throws Exception
Gets the names of the beans that this wrapper object is able to instantiate. A null return value indicates that there are no additional beans known to this object.

instantiateBean

public Object instantiateBean(String beanName,
                              BeanContext beanContext)
                       throws Exception
Instantiate a bean known to this object. This method is guaranteed to be called only for bean names that were returned by the getAdditionalBeanNames method. This method is required to preserve the semantics of the java.beans.Beans.instantiate(ClassLoader, String, BeanContext) method. In most cases it will do this by delegating to java.beans.Beans.instantiate(), passing it a ClassLoader that is capable of loading the bean class.
Parameters:
beanName - the name of the bean to instantiate.
beanContext - the BeanContext in which to nest the new bean.

Novell exteNd
Director 5.2 API