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.wiki.service;
022:
023: import com.liferay.portal.kernel.bean.BeanLocatorUtil;
024:
025: /**
026: * <a href="WikiPageLocalServiceFactory.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.wiki.service.WikiPageLocalService</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.wiki.service.WikiPageLocalService
049: * @see com.liferay.portlet.wiki.service.WikiPageLocalServiceUtil
050: *
051: */
052: public class WikiPageLocalServiceFactory {
053: public static WikiPageLocalService getService() {
054: return _getFactory()._service;
055: }
056:
057: public static WikiPageLocalService getImpl() {
058: if (_impl == null) {
059: _impl = (WikiPageLocalService) BeanLocatorUtil
060: .locate(_IMPL);
061: }
062:
063: return _impl;
064: }
065:
066: public static WikiPageLocalService getTxImpl() {
067: if (_txImpl == null) {
068: _txImpl = (WikiPageLocalService) BeanLocatorUtil
069: .locate(_TX_IMPL);
070: }
071:
072: return _txImpl;
073: }
074:
075: public void setService(WikiPageLocalService service) {
076: _service = service;
077: }
078:
079: private static WikiPageLocalServiceFactory _getFactory() {
080: if (_factory == null) {
081: _factory = (WikiPageLocalServiceFactory) BeanLocatorUtil
082: .locate(_FACTORY);
083: }
084:
085: return _factory;
086: }
087:
088: private static final String _FACTORY = WikiPageLocalServiceFactory.class
089: .getName();
090: private static final String _IMPL = WikiPageLocalService.class
091: .getName()
092: + ".impl";
093: private static final String _TX_IMPL = WikiPageLocalService.class
094: .getName()
095: + ".transaction";
096: private static WikiPageLocalServiceFactory _factory;
097: private static WikiPageLocalService _impl;
098: private static WikiPageLocalService _txImpl;
099: private WikiPageLocalService _service;
100: }
|