Java 类com.liferay.portal.kernel.util.ReferenceRegistry 实例源码

项目:mqtt-liferay-plugins    文件:MqttLocalServiceUtil.java   
public static MqttLocalService getService() {
    if (_service == null) {
        InvokableLocalService invokableLocalService = (InvokableLocalService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
                MqttLocalService.class.getName());

        if (invokableLocalService instanceof MqttLocalService) {
            _service = (MqttLocalService)invokableLocalService;
        }
        else {
            _service = new MqttLocalServiceClp(invokableLocalService);
        }

        ReferenceRegistry.registerReference(MqttLocalServiceUtil.class,
            "_service");
    }

    return _service;
}
项目:OEPv2    文件:TransitionHistoryServiceUtil.java   
public static TransitionHistoryService getService() {
    if (_service == null) {
        InvokableService invokableService = (InvokableService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
                TransitionHistoryService.class.getName());

        if (invokableService instanceof TransitionHistoryService) {
            _service = (TransitionHistoryService)invokableService;
        }
        else {
            _service = new TransitionHistoryServiceClp(invokableService);
        }

        ReferenceRegistry.registerReference(TransitionHistoryServiceUtil.class,
            "_service");
    }

    return _service;
}
项目:OEPv2    文件:PaymentRequestServiceUtil.java   
public static PaymentRequestService getService() {
    if (_service == null) {
        InvokableService invokableService = (InvokableService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
                PaymentRequestService.class.getName());

        if (invokableService instanceof PaymentRequestService) {
            _service = (PaymentRequestService)invokableService;
        }
        else {
            _service = new PaymentRequestServiceClp(invokableService);
        }

        ReferenceRegistry.registerReference(PaymentRequestServiceUtil.class,
            "_service");
    }

    return _service;
}
项目:OEPv2    文件:DossierFolderLocalServiceUtil.java   
public static DossierFolderLocalService getService() {
    if (_service == null) {
        InvokableLocalService invokableLocalService = (InvokableLocalService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
                DossierFolderLocalService.class.getName());

        if (invokableLocalService instanceof DossierFolderLocalService) {
            _service = (DossierFolderLocalService)invokableLocalService;
        }
        else {
            _service = new DossierFolderLocalServiceClp(invokableLocalService);
        }

        ReferenceRegistry.registerReference(DossierFolderLocalServiceUtil.class,
            "_service");
    }

    return _service;
}
项目:OEPv2    文件:DossierProcBookmarkServiceUtil.java   
public static DossierProcBookmarkService getService() {
    if (_service == null) {
        InvokableService invokableService = (InvokableService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
                DossierProcBookmarkService.class.getName());

        if (invokableService instanceof DossierProcBookmarkService) {
            _service = (DossierProcBookmarkService)invokableService;
        }
        else {
            _service = new DossierProcBookmarkServiceClp(invokableService);
        }

        ReferenceRegistry.registerReference(DossierProcBookmarkServiceUtil.class,
            "_service");
    }

    return _service;
}
项目:OEPv2    文件:EbMessageLocalServiceUtil.java   
public static EbMessageLocalService getService() {
    if (_service == null) {
        InvokableLocalService invokableLocalService = (InvokableLocalService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
                EbMessageLocalService.class.getName());

        if (invokableLocalService instanceof EbMessageLocalService) {
            _service = (EbMessageLocalService)invokableLocalService;
        }
        else {
            _service = new EbMessageLocalServiceClp(invokableLocalService);
        }

        ReferenceRegistry.registerReference(EbMessageLocalServiceUtil.class,
            "_service");
    }

    return _service;
}
项目:liferaylms-portlet    文件:AuditEntryLocalServiceUtil.java   
public static AuditEntryLocalService getService() {
    if (_service == null) {
        InvokableLocalService invokableLocalService = (InvokableLocalService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
                AuditEntryLocalService.class.getName());

        if (invokableLocalService instanceof AuditEntryLocalService) {
            _service = (AuditEntryLocalService)invokableLocalService;
        }
        else {
            _service = new AuditEntryLocalServiceClp(invokableLocalService);
        }

        ReferenceRegistry.registerReference(AuditEntryLocalServiceUtil.class,
            "_service");
    }

    return _service;
}
项目:OEPv2    文件:DictAttributeLocalServiceUtil.java   
public static DictAttributeLocalService getService() {
    if (_service == null) {
        InvokableLocalService invokableLocalService = (InvokableLocalService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
                DictAttributeLocalService.class.getName());

        if (invokableLocalService instanceof DictAttributeLocalService) {
            _service = (DictAttributeLocalService)invokableLocalService;
        }
        else {
            _service = new DictAttributeLocalServiceClp(invokableLocalService);
        }

        ReferenceRegistry.registerReference(DictAttributeLocalServiceUtil.class,
            "_service");
    }

    return _service;
}
项目:OEPv2    文件:DossierStep2RoleServiceUtil.java   
public static DossierStep2RoleService getService() {
    if (_service == null) {
        InvokableService invokableService = (InvokableService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
                DossierStep2RoleService.class.getName());

        if (invokableService instanceof DossierStep2RoleService) {
            _service = (DossierStep2RoleService)invokableService;
        }
        else {
            _service = new DossierStep2RoleServiceClp(invokableService);
        }

        ReferenceRegistry.registerReference(DossierStep2RoleServiceUtil.class,
            "_service");
    }

    return _service;
}
项目:OEPv2    文件:ProcessOrder2UserServiceUtil.java   
public static ProcessOrder2UserService getService() {
    if (_service == null) {
        InvokableService invokableService = (InvokableService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
                ProcessOrder2UserService.class.getName());

        if (invokableService instanceof ProcessOrder2UserService) {
            _service = (ProcessOrder2UserService)invokableService;
        }
        else {
            _service = new ProcessOrder2UserServiceClp(invokableService);
        }

        ReferenceRegistry.registerReference(ProcessOrder2UserServiceUtil.class,
            "_service");
    }

    return _service;
}
项目:govapps    文件:EntitlementLocalServiceUtil.java   
public static EntitlementLocalService getService() {
    if (_service == null) {
        InvokableLocalService invokableLocalService = (InvokableLocalService) PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
                EntitlementLocalService.class.getName());

        if (invokableLocalService instanceof EntitlementLocalService) {
            _service = (EntitlementLocalService) invokableLocalService;
        } else {
            _service = new EntitlementLocalServiceClp(invokableLocalService);
        }

        ReferenceRegistry.registerReference(EntitlementLocalServiceUtil.class,
            "_service");
    }

    return _service;
}
项目:OEPv2    文件:DocFileLocalServiceUtil.java   
public static DocFileLocalService getService() {
    if (_service == null) {
        InvokableLocalService invokableLocalService = (InvokableLocalService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
                DocFileLocalService.class.getName());

        if (invokableLocalService instanceof DocFileLocalService) {
            _service = (DocFileLocalService)invokableLocalService;
        }
        else {
            _service = new DocFileLocalServiceClp(invokableLocalService);
        }

        ReferenceRegistry.registerReference(DocFileLocalServiceUtil.class,
            "_service");
    }

    return _service;
}
项目:OEPv2    文件:PaymentFile2DossierLocalServiceUtil.java   
public static PaymentFile2DossierLocalService getService() {
    if (_service == null) {
        InvokableLocalService invokableLocalService = (InvokableLocalService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
                PaymentFile2DossierLocalService.class.getName());

        if (invokableLocalService instanceof PaymentFile2DossierLocalService) {
            _service = (PaymentFile2DossierLocalService)invokableLocalService;
        }
        else {
            _service = new PaymentFile2DossierLocalServiceClp(invokableLocalService);
        }

        ReferenceRegistry.registerReference(PaymentFile2DossierLocalServiceUtil.class,
            "_service");
    }

    return _service;
}
项目:OEPv2    文件:DossierProc2AgentServiceUtil.java   
public static DossierProc2AgentService getService() {
    if (_service == null) {
        InvokableService invokableService = (InvokableService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
                DossierProc2AgentService.class.getName());

        if (invokableService instanceof DossierProc2AgentService) {
            _service = (DossierProc2AgentService)invokableService;
        }
        else {
            _service = new DossierProc2AgentServiceClp(invokableService);
        }

        ReferenceRegistry.registerReference(DossierProc2AgentServiceUtil.class,
            "_service");
    }

    return _service;
}
项目:OEPv2    文件:DocFileLocalServiceUtil.java   
public static DocFileLocalService getService() {
    if (_service == null) {
        InvokableLocalService invokableLocalService = (InvokableLocalService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
                DocFileLocalService.class.getName());

        if (invokableLocalService instanceof DocFileLocalService) {
            _service = (DocFileLocalService)invokableLocalService;
        }
        else {
            _service = new DocFileLocalServiceClp(invokableLocalService);
        }

        ReferenceRegistry.registerReference(DocFileLocalServiceUtil.class,
            "_service");
    }

    return _service;
}
项目:OEPv2    文件:DictDataLocalServiceUtil.java   
public static DictDataLocalService getService() {
    if (_service == null) {
        InvokableLocalService invokableLocalService = (InvokableLocalService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
                DictDataLocalService.class.getName());

        if (invokableLocalService instanceof DictDataLocalService) {
            _service = (DictDataLocalService)invokableLocalService;
        }
        else {
            _service = new DictDataLocalServiceClp(invokableLocalService);
        }

        ReferenceRegistry.registerReference(DictDataLocalServiceUtil.class,
            "_service");
    }

    return _service;
}
项目:OEPv2    文件:DossierProcBookmarkLocalServiceUtil.java   
public static DossierProcBookmarkLocalService getService() {
    if (_service == null) {
        InvokableLocalService invokableLocalService = (InvokableLocalService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
                DossierProcBookmarkLocalService.class.getName());

        if (invokableLocalService instanceof DossierProcBookmarkLocalService) {
            _service = (DossierProcBookmarkLocalService)invokableLocalService;
        }
        else {
            _service = new DossierProcBookmarkLocalServiceClp(invokableLocalService);
        }

        ReferenceRegistry.registerReference(DossierProcBookmarkLocalServiceUtil.class,
            "_service");
    }

    return _service;
}
项目:OEPv2    文件:SSOAppServiceUtil.java   
public static SSOAppService getService() {
    if (_service == null) {
        InvokableService invokableService = (InvokableService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
                SSOAppService.class.getName());

        if (invokableService instanceof SSOAppService) {
            _service = (SSOAppService)invokableService;
        }
        else {
            _service = new SSOAppServiceClp(invokableService);
        }

        ReferenceRegistry.registerReference(SSOAppServiceUtil.class,
            "_service");
    }

    return _service;
}
项目:particity    文件:AHOfferLocalServiceUtil.java   
public static AHOfferLocalService getService() {
    if (_service == null) {
        InvokableLocalService invokableLocalService = (InvokableLocalService) PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
                AHOfferLocalService.class.getName());

        if (invokableLocalService instanceof AHOfferLocalService) {
            _service = (AHOfferLocalService) invokableLocalService;
        } else {
            _service = new AHOfferLocalServiceClp(invokableLocalService);
        }

        ReferenceRegistry.registerReference(AHOfferLocalServiceUtil.class,
            "_service");
    }

    return _service;
}
项目:OEPv2    文件:StatisticByDayServiceUtil.java   
public static StatisticByDayService getService() {
    if (_service == null) {
        InvokableService invokableService = (InvokableService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
                StatisticByDayService.class.getName());

        if (invokableService instanceof StatisticByDayService) {
            _service = (StatisticByDayService)invokableService;
        }
        else {
            _service = new StatisticByDayServiceClp(invokableService);
        }

        ReferenceRegistry.registerReference(StatisticByDayServiceUtil.class,
            "_service");
    }

    return _service;
}
项目:govapps    文件:Application_EntitlementServiceUtil.java   
public static Application_EntitlementService getService() {
    if (_service == null) {
        InvokableService invokableService = (InvokableService) PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
                Application_EntitlementService.class.getName());

        if (invokableService instanceof Application_EntitlementService) {
            _service = (Application_EntitlementService) invokableService;
        } else {
            _service = new Application_EntitlementServiceClp(invokableService);
        }

        ReferenceRegistry.registerReference(Application_EntitlementServiceUtil.class,
            "_service");
    }

    return _service;
}
项目:liferaylms-portlet    文件:CompetenceServiceUtil.java   
public static CompetenceService getService() {
    if (_service == null) {
        InvokableService invokableService = (InvokableService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
                CompetenceService.class.getName());

        if (invokableService instanceof CompetenceService) {
            _service = (CompetenceService)invokableService;
        }
        else {
            _service = new CompetenceServiceClp(invokableService);
        }

        ReferenceRegistry.registerReference(CompetenceServiceUtil.class,
            "_service");
    }

    return _service;
}
项目:OEPv2    文件:PaymentConfigLocalServiceUtil.java   
public static PaymentConfigLocalService getService() {
    if (_service == null) {
        InvokableLocalService invokableLocalService = (InvokableLocalService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
                PaymentConfigLocalService.class.getName());

        if (invokableLocalService instanceof PaymentConfigLocalService) {
            _service = (PaymentConfigLocalService)invokableLocalService;
        }
        else {
            _service = new PaymentConfigLocalServiceClp(invokableLocalService);
        }

        ReferenceRegistry.registerReference(PaymentConfigLocalServiceUtil.class,
            "_service");
    }

    return _service;
}
项目:liferaylms-portlet    文件:LearningActivityResultLocalServiceUtil.java   
public static LearningActivityResultLocalService getService() {
    if (_service == null) {
        InvokableLocalService invokableLocalService = (InvokableLocalService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
                LearningActivityResultLocalService.class.getName());

        if (invokableLocalService instanceof LearningActivityResultLocalService) {
            _service = (LearningActivityResultLocalService)invokableLocalService;
        }
        else {
            _service = new LearningActivityResultLocalServiceClp(invokableLocalService);
        }

        ReferenceRegistry.registerReference(LearningActivityResultLocalServiceUtil.class,
            "_service");
    }

    return _service;
}
项目:govapps    文件:LanguageLocalServiceUtil.java   
public static LanguageLocalService getService() {
    if (_service == null) {
        InvokableLocalService invokableLocalService = (InvokableLocalService) PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
                LanguageLocalService.class.getName());

        if (invokableLocalService instanceof LanguageLocalService) {
            _service = (LanguageLocalService) invokableLocalService;
        } else {
            _service = new LanguageLocalServiceClp(invokableLocalService);
        }

        ReferenceRegistry.registerReference(LanguageLocalServiceUtil.class,
            "_service");
    }

    return _service;
}
项目:OEPv2    文件:PaymentFileServiceUtil.java   
public static PaymentFileService getService() {
    if (_service == null) {
        InvokableService invokableService = (InvokableService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
                PaymentFileService.class.getName());

        if (invokableService instanceof PaymentFileService) {
            _service = (PaymentFileService)invokableService;
        }
        else {
            _service = new PaymentFileServiceClp(invokableService);
        }

        ReferenceRegistry.registerReference(PaymentFileServiceUtil.class,
            "_service");
    }

    return _service;
}
项目:OEPv2    文件:DossierLocalServiceUtil.java   
public static DossierLocalService getService() {
    if (_service == null) {
        InvokableLocalService invokableLocalService = (InvokableLocalService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
                DossierLocalService.class.getName());

        if (invokableLocalService instanceof DossierLocalService) {
            _service = (DossierLocalService)invokableLocalService;
        }
        else {
            _service = new DossierLocalServiceClp(invokableLocalService);
        }

        ReferenceRegistry.registerReference(DossierLocalServiceUtil.class,
            "_service");
    }

    return _service;
}
项目:OEPv2    文件:StatisticByAgencyServiceUtil.java   
public static StatisticByAgencyService getService() {
    if (_service == null) {
        InvokableService invokableService = (InvokableService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
                StatisticByAgencyService.class.getName());

        if (invokableService instanceof StatisticByAgencyService) {
            _service = (StatisticByAgencyService)invokableService;
        }
        else {
            _service = new StatisticByAgencyServiceClp(invokableService);
        }

        ReferenceRegistry.registerReference(StatisticByAgencyServiceUtil.class,
            "_service");
    }

    return _service;
}
项目:OEPv2    文件:DocFileVersionLocalServiceUtil.java   
public static DocFileVersionLocalService getService() {
    if (_service == null) {
        InvokableLocalService invokableLocalService = (InvokableLocalService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
                DocFileVersionLocalService.class.getName());

        if (invokableLocalService instanceof DocFileVersionLocalService) {
            _service = (DocFileVersionLocalService)invokableLocalService;
        }
        else {
            _service = new DocFileVersionLocalServiceClp(invokableLocalService);
        }

        ReferenceRegistry.registerReference(DocFileVersionLocalServiceUtil.class,
            "_service");
    }

    return _service;
}
项目:OEPv2    文件:StatisticByDayServiceUtil.java   
public static StatisticByDayService getService() {
    if (_service == null) {
        InvokableService invokableService = (InvokableService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
                StatisticByDayService.class.getName());

        if (invokableService instanceof StatisticByDayService) {
            _service = (StatisticByDayService)invokableService;
        }
        else {
            _service = new StatisticByDayServiceClp(invokableService);
        }

        ReferenceRegistry.registerReference(StatisticByDayServiceUtil.class,
            "_service");
    }

    return _service;
}
项目:OEPv2    文件:DictMetaDataLocalServiceUtil.java   
public static DictMetaDataLocalService getService() {
    if (_service == null) {
        InvokableLocalService invokableLocalService = (InvokableLocalService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
                DictMetaDataLocalService.class.getName());

        if (invokableLocalService instanceof DictMetaDataLocalService) {
            _service = (DictMetaDataLocalService)invokableLocalService;
        }
        else {
            _service = new DictMetaDataLocalServiceClp(invokableLocalService);
        }

        ReferenceRegistry.registerReference(DictMetaDataLocalServiceUtil.class,
            "_service");
    }

    return _service;
}
项目:OEPv2    文件:ProcessOrderServiceUtil.java   
public static ProcessOrderService getService() {
    if (_service == null) {
        InvokableService invokableService = (InvokableService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
                ProcessOrderService.class.getName());

        if (invokableService instanceof ProcessOrderService) {
            _service = (ProcessOrderService)invokableService;
        }
        else {
            _service = new ProcessOrderServiceClp(invokableService);
        }

        ReferenceRegistry.registerReference(ProcessOrderServiceUtil.class,
            "_service");
    }

    return _service;
}
项目:liferaylms-portlet    文件:CourseResultLocalServiceUtil.java   
public static CourseResultLocalService getService() {
    if (_service == null) {
        InvokableLocalService invokableLocalService = (InvokableLocalService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
                CourseResultLocalService.class.getName());

        if (invokableLocalService instanceof CourseResultLocalService) {
            _service = (CourseResultLocalService)invokableLocalService;
        }
        else {
            _service = new CourseResultLocalServiceClp(invokableLocalService);
        }

        ReferenceRegistry.registerReference(CourseResultLocalServiceUtil.class,
            "_service");
    }

    return _service;
}
项目:govapps    文件:RegionServiceUtil.java   
public static RegionService getService() {
    if (_service == null) {
        InvokableService invokableService = (InvokableService) PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
                RegionService.class.getName());

        if (invokableService instanceof RegionService) {
            _service = (RegionService) invokableService;
        } else {
            _service = new RegionServiceClp(invokableService);
        }

        ReferenceRegistry.registerReference(RegionServiceUtil.class,
            "_service");
    }

    return _service;
}
项目:liferaylms-portlet    文件:LearningActivityServiceUtil.java   
public static LearningActivityService getService() {
    if (_service == null) {
        InvokableService invokableService = (InvokableService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
                LearningActivityService.class.getName());

        if (invokableService instanceof LearningActivityService) {
            _service = (LearningActivityService)invokableService;
        }
        else {
            _service = new LearningActivityServiceClp(invokableService);
        }

        ReferenceRegistry.registerReference(LearningActivityServiceUtil.class,
            "_service");
    }

    return _service;
}
项目:OEPv2    文件:ApplicationServiceUtil.java   
public static ApplicationService getService() {
    if (_service == null) {
        InvokableService invokableService = (InvokableService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
                ApplicationService.class.getName());

        if (invokableService instanceof ApplicationService) {
            _service = (ApplicationService)invokableService;
        }
        else {
            _service = new ApplicationServiceClp(invokableService);
        }

        ReferenceRegistry.registerReference(ApplicationServiceUtil.class,
            "_service");
    }

    return _service;
}
项目:OEPv2    文件:AppRole2JobPosLocalServiceUtil.java   
public static AppRole2JobPosLocalService getService() {
    if (_service == null) {
        InvokableLocalService invokableLocalService = (InvokableLocalService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
                AppRole2JobPosLocalService.class.getName());

        if (invokableLocalService instanceof AppRole2JobPosLocalService) {
            _service = (AppRole2JobPosLocalService)invokableLocalService;
        }
        else {
            _service = new AppRole2JobPosLocalServiceClp(invokableLocalService);
        }

        ReferenceRegistry.registerReference(AppRole2JobPosLocalServiceUtil.class,
            "_service");
    }

    return _service;
}
项目:OEPv2    文件:StepTransitionLocalServiceUtil.java   
public static StepTransitionLocalService getService() {
    if (_service == null) {
        InvokableLocalService invokableLocalService = (InvokableLocalService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
                StepTransitionLocalService.class.getName());

        if (invokableLocalService instanceof StepTransitionLocalService) {
            _service = (StepTransitionLocalService)invokableLocalService;
        }
        else {
            _service = new StepTransitionLocalServiceClp(invokableLocalService);
        }

        ReferenceRegistry.registerReference(StepTransitionLocalServiceUtil.class,
            "_service");
    }

    return _service;
}
项目:OEPv2    文件:AppRole2JobPosLocalServiceUtil.java   
public static AppRole2JobPosLocalService getService() {
    if (_service == null) {
        InvokableLocalService invokableLocalService = (InvokableLocalService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
                AppRole2JobPosLocalService.class.getName());

        if (invokableLocalService instanceof AppRole2JobPosLocalService) {
            _service = (AppRole2JobPosLocalService)invokableLocalService;
        }
        else {
            _service = new AppRole2JobPosLocalServiceClp(invokableLocalService);
        }

        ReferenceRegistry.registerReference(AppRole2JobPosLocalServiceUtil.class,
            "_service");
    }

    return _service;
}
项目:OEPv2    文件:DocFile2ProcessOrderServiceUtil.java   
public static DocFile2ProcessOrderService getService() {
    if (_service == null) {
        InvokableService invokableService = (InvokableService)PortletBeanLocatorUtil.locate(ClpSerializer.getServletContextName(),
                DocFile2ProcessOrderService.class.getName());

        if (invokableService instanceof DocFile2ProcessOrderService) {
            _service = (DocFile2ProcessOrderService)invokableService;
        }
        else {
            _service = new DocFile2ProcessOrderServiceClp(invokableService);
        }

        ReferenceRegistry.registerReference(DocFile2ProcessOrderServiceUtil.class,
            "_service");
    }

    return _service;
}