org.opennms.reporting.core.svclayer.support
Class DefaultReportServiceLocator

java.lang.Object
  extended by org.opennms.reporting.core.svclayer.support.DefaultReportServiceLocator
All Implemented Interfaces:
ReportServiceLocator, org.springframework.context.ApplicationContextAware

public class DefaultReportServiceLocator
extends Object
implements org.springframework.context.ApplicationContextAware, ReportServiceLocator

DefaultReportServiceLocator class.

Version:
$Id: $
Author:
ranger

Constructor Summary
DefaultReportServiceLocator()
           
 
Method Summary
 ReportService getReportService(String reportServiceName)
          This method is used to retrieve the ReportService bean associated with
 ReportService getReportServiceForId(String reportId)
          This method is used to retrieve the ReportService bean associated with a report Id
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
          
 void setDatabaseReportConfigDao(DatabaseReportConfigDao databaseReportConfigDao)
          setDatabaseReportConfigDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultReportServiceLocator

public DefaultReportServiceLocator()
Method Detail

getReportService

public ReportService getReportService(String reportServiceName)
                               throws ReportServiceLocatorException
This method is used to retrieve the ReportService bean associated with

Specified by:
getReportService in interface ReportServiceLocator
Parameters:
reportServiceName - the name of the report service as as defined in database-reports.xml
Returns:
the ReportService bean used to run this report
Throws:
ReportServiceLocatorException - if any.

getReportServiceForId

public ReportService getReportServiceForId(String reportId)
                                    throws ReportServiceLocatorException
This method is used to retrieve the ReportService bean associated with a report Id

Specified by:
getReportServiceForId in interface ReportServiceLocator
Parameters:
reportId - the reportID defined in database-reports.xml
Returns:
the ReportService bean used to run this report
Throws:
ReportServiceLocatorException - if any.

setApplicationContext

public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)

Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware

setDatabaseReportConfigDao

public void setDatabaseReportConfigDao(DatabaseReportConfigDao databaseReportConfigDao)

setDatabaseReportConfigDao

Parameters:
databaseReportConfigDao - a DatabaseReportConfigDao object.


Copyright © 2011. All Rights Reserved.