001    package org.apache.myfaces.tobago.context;
002    
003    /*
004     * Licensed to the Apache Software Foundation (ASF) under one or more
005     * contributor license agreements.  See the NOTICE file distributed with
006     * this work for additional information regarding copyright ownership.
007     * The ASF licenses this file to You under the Apache License, Version 2.0
008     * (the "License"); you may not use this file except in compliance with
009     * the License.  You may obtain a copy of the License at
010     *
011     *      http://www.apache.org/licenses/LICENSE-2.0
012     *
013     * Unless required by applicable law or agreed to in writing, software
014     * distributed under the License is distributed on an "AS IS" BASIS,
015     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
016     * See the License for the specific language governing permissions and
017     * limitations under the License.
018     */
019    
020    import org.apache.myfaces.tobago.internal.config.TobagoConfigImpl;
021    
022    import javax.faces.context.FacesContext;
023    import javax.servlet.ServletContext;
024    import javax.servlet.ServletException;
025    
026    /**
027     * @deprecated since 1.5.0. Has been moved to internal package
028     */
029    @Deprecated
030    public class ResourceManagerFactory {
031    
032      /**
033       * @deprecated has been moved to internal package
034       */
035      @Deprecated
036      public static final String RESOURCE_MANAGER
037          = org.apache.myfaces.tobago.internal.context.ResourceManagerFactory.RESOURCE_MANAGER;
038    
039      private ResourceManagerFactory() {
040      }
041    
042      /**
043       * @deprecated has been moved to internal package
044       */
045      @Deprecated
046      public static ResourceManager getResourceManager(FacesContext facesContext) {
047        return org.apache.myfaces.tobago.internal.context.ResourceManagerFactory.getResourceManager(facesContext);
048      }
049    
050      /**
051       * @deprecated has been moved to internal package
052       */
053      @Deprecated
054      public static ResourceManager getResourceManager(ServletContext servletContext) {
055        return org.apache.myfaces.tobago.internal.context.ResourceManagerFactory.getResourceManager(servletContext);
056      }
057    
058      /**
059       * @deprecated has been moved to internal package
060       */
061      @Deprecated
062      public static void init(ServletContext servletContext, TobagoConfigImpl tobagoConfig) throws ServletException {
063        org.apache.myfaces.tobago.internal.context.ResourceManagerFactory.init(servletContext, tobagoConfig);
064      }
065    
066      /**
067       * @deprecated has been moved to internal package
068       */
069      @Deprecated
070      public static void release(ServletContext servletContext) {
071        org.apache.myfaces.tobago.internal.context.ResourceManagerFactory.release(servletContext);
072      }
073    }