01: package com.ext.portlet.reports.service;
02:
03: import com.liferay.portal.kernel.bean.BeanLocatorUtil;
04:
05: /**
06: * <a href="ReportsEntryServiceFactory.java.html"><b><i>View Source</i></b></a>
07: *
08: * <p>
09: * ServiceBuilder generated this class. Modifications in this class will be
10: * overwritten the next time is generated.
11: * </p>
12: *
13: * <p>
14: * This class is responsible for the lookup of the implementation for
15: * <code>com.ext.portlet.reports.service.ReportsEntryService</code>.
16: * Spring manages the lookup and lifecycle of the beans. This means you can
17: * modify the Spring configuration files to return a different implementation or
18: * to inject additional behavior.
19: * </p>
20: *
21: * <p>
22: * See the <code>spring.configs</code> property in portal.properties for
23: * additional information on how to customize the Spring XML files.
24: * </p>
25: *
26: * @author Brian Wing Shun Chan
27: *
28: * @see com.ext.portlet.reports.service.ReportsEntryService
29: * @see com.ext.portlet.reports.service.ReportsEntryServiceUtil
30: *
31: */
32: public class ReportsEntryServiceFactory {
33: private static final String _FACTORY = ReportsEntryServiceFactory.class
34: .getName();
35: private static final String _IMPL = ReportsEntryService.class
36: .getName()
37: + ".impl";
38: private static final String _TX_IMPL = ReportsEntryService.class
39: .getName()
40: + ".transaction";
41: private static ReportsEntryServiceFactory _factory;
42: private static ReportsEntryService _impl;
43: private static ReportsEntryService _txImpl;
44: private ReportsEntryService _service;
45:
46: public static ReportsEntryService getService() {
47: return _getFactory()._service;
48: }
49:
50: public static ReportsEntryService getImpl() {
51: if (_impl == null) {
52: _impl = (ReportsEntryService) BeanLocatorUtil.locate(_IMPL);
53: }
54:
55: return _impl;
56: }
57:
58: public static ReportsEntryService getTxImpl() {
59: if (_txImpl == null) {
60: _txImpl = (ReportsEntryService) BeanLocatorUtil
61: .locate(_TX_IMPL);
62: }
63:
64: return _txImpl;
65: }
66:
67: public void setService(ReportsEntryService service) {
68: _service = service;
69: }
70:
71: private static ReportsEntryServiceFactory _getFactory() {
72: if (_factory == null) {
73: _factory = (ReportsEntryServiceFactory) BeanLocatorUtil
74: .locate(_FACTORY);
75: }
76:
77: return _factory;
78: }
79: }
|