1 /*2 * Copyright 2003,2004 The Apache Software Foundation.3 * 4 * Licensed under the Apache License, Version 2.0 (the "License");5 * you may not use this file except in compliance with the License.6 * You may obtain a copy of the License at7 * 8 * http://www.apache.org/licenses/LICENSE-2.09 * 10 * Unless required by applicable law or agreed to in writing, software11 * distributed under the License is distributed on an "AS IS" BASIS,12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.13 * See the License for the specific language governing permissions and14 * limitations under the License.15 */16 /* 17 18 */19 20 package org.apache.pluto.portalImpl.factory;21 22 import org.apache.pluto.portalImpl.services.factorymanager.FactoryManager;23 import org.apache.pluto.services.information.DynamicInformationProvider;24 import org.apache.pluto.services.information.InformationProviderService;25 import org.apache.pluto.services.information.StaticInformationProvider;26 import org.apache.pluto.services.title.DynamicTitleService;27 28 public class FactoryAccess {29 30 public static StaticInformationProvider getStaticProvider()31 {32 return getProviderFactory().getStaticProvider();33 }34 35 public static DynamicInformationProvider getDynamicProvider(javax.servlet.http.HttpServletRequest request)36 {37 return getProviderFactory().getDynamicProvider(request);38 }39 40 public static InformationProviderService getInformationProviderContainerService()41 {42 return getProviderService();43 }44 45 public static DynamicTitleService getDynamicTitleContainerService()46 {47 return getDynTitleServiceFactory().getDynamicTitleService();48 }49 50 private static InformationProviderFactory getProviderFactory()51 { 52 return(InformationProviderFactory)FactoryManager.getFactory(org.apache.pluto.portalImpl.factory.InformationProviderFactory.class);53 }54 55 private static InformationProviderService getProviderService()56 { 57 return(InformationProviderService)FactoryManager.getFactory(org.apache.pluto.portalImpl.factory.InformationProviderFactory.class);58 }59 60 private static DynamicTitleServiceFactory getDynTitleServiceFactory()61 { 62 return(DynamicTitleServiceFactory)FactoryManager.getFactory(org.apache.pluto.portalImpl.factory.DynamicTitleServiceFactory.class);63 }64 65 } 66