Class DefaultReportServiceLocator
- java.lang.Object
-
- org.opennms.reporting.core.svclayer.support.DefaultReportServiceLocator
-
- All Implemented Interfaces:
ReportServiceLocator
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
public class DefaultReportServiceLocator extends Object implements org.springframework.context.ApplicationContextAware, ReportServiceLocator
DefaultReportServiceLocator class.
-
-
Constructor Summary
Constructors Constructor Description DefaultReportServiceLocator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ReportService
getReportService(String reportServiceName)
This method is used to retrieve the ReportService bean associated withReportService
getReportServiceForId(String reportId)
This method is used to retrieve the ReportService bean associated with a report Idvoid
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
void
setGlobalReportRepository(GlobalReportRepository globalReportRepository)
-
-
-
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 interfaceReportServiceLocator
- 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 interfaceReportServiceLocator
- 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 interfaceorg.springframework.context.ApplicationContextAware
-
setGlobalReportRepository
public void setGlobalReportRepository(GlobalReportRepository globalReportRepository)
-
-