net.windward.bean
Interface StatefulBeanProvider

All Superinterfaces:
BeanProvider
All Known Implementing Classes:
StatefulBeanProviderImpl

public interface StatefulBeanProvider
extends BeanProvider

This interface must be implemented for any stateless Windward Reports bean. This interface only comes in to play for beans loaded by the Windward Reports server.

Version:
3.0 August 13, 2004

Method Summary
 void datasourceSetup(DataSourceProvider provider, java.lang.String name)
          This method is called before each datasource is applied to a report.
 void datasourceTeardown()
          This method is called after each datasource is applied to a report.
 void reportSetup(ProcessReport process, java.util.Properties properties)
          This method is called before any datasources are applied to a report.
 void reportTeardown()
          This method is called after all datasources are applied to a report.
 
Methods inherited from interface net.windward.bean.BeanProvider
forEachTag, functionTag, ifTag, outTag
 

Method Detail

reportSetup

public void reportSetup(ProcessReport process,
                        java.util.Properties properties)
                 throws BeanProviderException
This method is called before any datasources are applied to a report. It is only called in the case of the reporting server creating a bean (ie, it is not called when you pass beans directly to Windward Reports in the non client-server case.)
Parameters:
process - The process object for the report. This method is called after process.processSetup() has completed.
properties - The properties set for this bean in the server properties file.
Throws:
BeanProviderException - thrown if the bean can not be used. This will stop the report from completing.

reportTeardown

public void reportTeardown()
                    throws BeanProviderException
This method is called after all datasources are applied to a report. It is only called in the case of the reporting server creating a bean (ie, it is not called when you pass beans directly to Windward Reports in the non client-server case.)
Throws:
BeanProviderException - thrown if the bean can not be used. This will stop the report from completing.

datasourceSetup

public void datasourceSetup(DataSourceProvider provider,
                            java.lang.String name)
                     throws BeanProviderException
This method is called before each datasource is applied to a report. This is called for both the reporting server and direct calls of Windward Reports cases.
Parameters:
provider - The datasource that is about to be applied to the report.
name - The name of the datasource.
Throws:
BeanProviderException - thrown if the bean can not be used. This will stop the report from completing.

datasourceTeardown

public void datasourceTeardown()
                        throws BeanProviderException
This method is called after each datasource is applied to a report. This is called for both the reporting server and direct calls of Windward Reports cases.
Throws:
BeanProviderException - thrown if the bean can not be used. This will stop the report from completing.


Copyright © 2002 - 2008 Windward Reports - All Rights Reserved. java reporting software