001    package coldfusion.server;
002    
003    import railo.runtime.services.DataSourceServiceImpl;
004    
005    public class ServiceFactory {
006            public static final void clear()        {
007    
008            }
009    
010            public static final SecurityService getSecurityService() throws ServiceException        {
011                    throw missingService("SecurityService");
012            }
013    
014            public static final LoggingService getLoggingService() throws ServiceException  {
015                    throw missingService("LoggingService");
016            }
017    
018            public static final SchedulerService getSchedulerService() throws ServiceException      {
019                    throw missingService("SchedulerService");
020            }
021    
022            public static final DataSourceService getDataSourceService()    {
023                    return new DataSourceServiceImpl();
024            }
025    
026            public static final MailSpoolService getMailSpoolService() throws ServiceException      {
027                    throw missingService("MailSpoolService");
028            }
029    
030            public static final VerityService getVerityService() throws ServiceException    {
031                    throw missingService("VerityService");
032            }
033    
034            public static final DebuggingService getDebuggingService() throws ServiceException      {
035                    throw missingService("DebuggingService");
036            }
037    
038            public static final RuntimeService getRuntimeService() throws ServiceException  {
039                    throw missingService("RuntimeService");
040            }
041    
042            public static final CronService getCronService() throws ServiceException        {
043                    throw missingService("CronService");
044            }
045    
046            public static final ClientScopeService getClientScopeService() throws ServiceException  {
047                    throw missingService("ClientScopeService");
048            }
049    
050            public static final MetricsService getMetricsService() throws ServiceException  {
051                    throw missingService("MetricsService");
052            }
053    
054            public static final XmlRpcService getXmlRpcService() throws ServiceException    {
055                    throw missingService("XmlRpcService");
056            }
057    
058            public static final GraphingService getGraphingService() throws ServiceException        {
059                    throw missingService("GraphingService");
060            }
061    
062            public static final ArchiveDeployService getArchiveDeployService() throws ServiceException      {
063                    throw missingService("ArchiveDeployService");
064            }
065    
066            public static final RegistryService getRegistryService() throws ServiceException        {
067                    throw missingService("RegistryService");
068            }
069    
070            public static final LicenseService getLicenseService() throws ServiceException  {
071                    throw missingService("LicenseService");
072            }
073    
074            public static final DocumentService getDocumentService() throws ServiceException        {
075                    throw missingService("DocumentService");
076            }
077    
078            public static final EventGatewayService getEventProcessorService() throws ServiceException      {
079                    throw missingService("DocumentService");
080            }
081    
082            public static final WatchService getWatchService() throws ServiceException      {
083                    throw missingService("WatchService");
084            }
085            
086            private static ServiceException missingService(String service) {
087                    // TODO Auto-generated method stub
088                    return new ServiceException("the service ["+service+"] is currently missing. At the moment you can use cfadmin tag instead");
089            }
090            
091    
092            public static final void setSecurityService(SecurityService service)    {
093    
094            }
095    
096            public static final void setSchedulerService(SchedulerService service)  {
097    
098            }
099    
100            public static final void setLoggingService(LoggingService service)      {
101    
102            }
103    
104            public static final void setDataSourceService(DataSourceService service)        {
105    
106            }
107    
108            public static final void setMailSpoolService(MailSpoolService service)  {
109    
110            }
111    
112            public static final void setVerityService(VerityService service)        {
113    
114            }
115    
116            public static final void setDebuggingService(DebuggingService service)  {
117    
118            }
119    
120            public static final void setRuntimeService(RuntimeService service)      {
121    
122            }
123    
124            public static final void setCronService(CronService service)    {
125    
126            }
127    
128            public static final void setClientScopeService(ClientScopeService service)      {
129    
130            }
131    
132            public static final void setMetricsService(MetricsService service)      {
133    
134            }
135    
136            public static final void setXmlRpcService(XmlRpcService service)        {
137    
138            }
139    
140            public static final void setGraphingService(GraphingService service)    {
141    
142            }
143    
144            public static final void setArchiveDeployService(ArchiveDeployService service)  {
145    
146            }
147    
148            public static final void setRegistryService(RegistryService service)    {
149    
150            }
151    
152            public static final void setLicenseService(LicenseService service)      {
153    
154            }
155    
156            public static final void setDocumentService(DocumentService service)    {
157    
158            }
159    
160            public static final void setEventProcessorService(EventGatewayService service)  {
161    
162            }
163    
164            public static final void setWatchService(WatchService service)  {
165    
166            }
167    
168    
169            
170    
171    
172    }