001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portlet.documentlibrary.service;
022:
023: import com.liferay.portal.kernel.bean.BeanLocatorUtil;
024:
025: /**
026: * <a href="DLFileRankLocalServiceFactory.java.html"><b><i>View Source</i></b></a>
027: *
028: * <p>
029: * ServiceBuilder generated this class. Modifications in this class will be
030: * overwritten the next time is generated.
031: * </p>
032: *
033: * <p>
034: * This class is responsible for the lookup of the implementation for
035: * <code>com.liferay.portlet.documentlibrary.service.DLFileRankLocalService</code>.
036: * Spring manages the lookup and lifecycle of the beans. This means you can
037: * modify the Spring configuration files to return a different implementation or
038: * to inject additional behavior.
039: * </p>
040: *
041: * <p>
042: * See the <code>spring.configs</code> property in portal.properties for
043: * additional information on how to customize the Spring XML files.
044: * </p>
045: *
046: * @author Brian Wing Shun Chan
047: *
048: * @see com.liferay.portlet.documentlibrary.service.DLFileRankLocalService
049: * @see com.liferay.portlet.documentlibrary.service.DLFileRankLocalServiceUtil
050: *
051: */
052: public class DLFileRankLocalServiceFactory {
053: public static DLFileRankLocalService getService() {
054: return _getFactory()._service;
055: }
056:
057: public static DLFileRankLocalService getImpl() {
058: if (_impl == null) {
059: _impl = (DLFileRankLocalService) BeanLocatorUtil
060: .locate(_IMPL);
061: }
062:
063: return _impl;
064: }
065:
066: public static DLFileRankLocalService getTxImpl() {
067: if (_txImpl == null) {
068: _txImpl = (DLFileRankLocalService) BeanLocatorUtil
069: .locate(_TX_IMPL);
070: }
071:
072: return _txImpl;
073: }
074:
075: public void setService(DLFileRankLocalService service) {
076: _service = service;
077: }
078:
079: private static DLFileRankLocalServiceFactory _getFactory() {
080: if (_factory == null) {
081: _factory = (DLFileRankLocalServiceFactory) BeanLocatorUtil
082: .locate(_FACTORY);
083: }
084:
085: return _factory;
086: }
087:
088: private static final String _FACTORY = DLFileRankLocalServiceFactory.class
089: .getName();
090: private static final String _IMPL = DLFileRankLocalService.class
091: .getName()
092: + ".impl";
093: private static final String _TX_IMPL = DLFileRankLocalService.class
094: .getName()
095: + ".transaction";
096: private static DLFileRankLocalServiceFactory _factory;
097: private static DLFileRankLocalService _impl;
098: private static DLFileRankLocalService _txImpl;
099: private DLFileRankLocalService _service;
100: }
|