jve.generated
Class JavaBeanDataSource

java.lang.Object
  extended byjve.generated.JavaBeanDataSource
All Implemented Interfaces:
IDataSource

public class JavaBeanDataSource
extends java.lang.Object
implements IDataSource

This DataSource uses a null constructor to instantiate a Java bean. The bean's public methods are then available for use as service methods.


Constructor Summary
JavaBeanDataSource()
           
 
Method Summary
 java.lang.String getClassName()
          Get the fully qualified class name of the target Java Bean.
 java.lang.Object getDataSource()
          Get an an instance for a data source facade that is initialized properly and whose services are available.
 java.lang.Class getType()
          In design time, this method will be used to reflect on the services that are available from the implemented data source
 void setClassName(java.lang.String className)
          Set the fully qualified class name of the target Java Bean.
 void setDataSource(java.lang.Object name)
          Set an instance of a facade to become the data source
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaBeanDataSource

public JavaBeanDataSource()
Method Detail

getDataSource

public java.lang.Object getDataSource()
Description copied from interface: IDataSource
Get an an instance for a data source facade that is initialized properly and whose services are available.
Note: this method may return null at design time using
if (java.beans.Beans.isDesignTime()) { return null; }
to prevent querying live data while designing the interface.

Specified by:
getDataSource in interface IDataSource
Returns:
an instance of the facde

setDataSource

public void setDataSource(java.lang.Object name)
Description copied from interface: IDataSource
Set an instance of a facade to become the data source

Specified by:
setDataSource in interface IDataSource
Parameters:
name - the data source

getClassName

public java.lang.String getClassName()
Get the fully qualified class name of the target Java Bean.

Returns:
Returns the class name.

setClassName

public void setClassName(java.lang.String className)
                  throws java.lang.IllegalArgumentException
Set the fully qualified class name of the target Java Bean.

Parameters:
className - The class name to set.
Throws:
java.lang.IllegalArgumentException - if the target class is invalid or can not be found.

getType

public java.lang.Class getType()
Description copied from interface: IDataSource
In design time, this method will be used to reflect on the services that are available from the implemented data source

Specified by:
getType in interface IDataSource
Returns:
the class of the facade