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