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

项目:OEPv2    文件:EbPartnerShipPersistenceImpl.java   
/**
 * Initializes the eb partner ship persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.org.oep.core.dossiermgt.model.EbPartnerShip")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<EbPartnerShip>> listenersList = new ArrayList<ModelListener<EbPartnerShip>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<EbPartnerShip>)InstanceFactory.newInstance(
                        getClassLoader(), listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        }
        catch (Exception e) {
            _log.error(e);
        }
    }
}
项目:liferaylms-portlet    文件:ActivityTriesDeletedPersistenceImpl.java   
/**
 * Initializes the activity tries deleted persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.com.liferay.lms.model.ActivityTriesDeleted")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<ActivityTriesDeleted>> listenersList = new ArrayList<ModelListener<ActivityTriesDeleted>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<ActivityTriesDeleted>)InstanceFactory.newInstance(
                        listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        }
        catch (Exception e) {
            _log.error(e);
        }
    }
}
项目:OEPv2    文件:DocTemplatePersistenceImpl.java   
/**
 * Initializes the doc template persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.org.oep.core.dossiermgt.model.DocTemplate")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<DocTemplate>> listenersList = new ArrayList<ModelListener<DocTemplate>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<DocTemplate>)InstanceFactory.newInstance(
                        getClassLoader(), listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        }
        catch (Exception e) {
            _log.error(e);
        }
    }

    docTemplateToDossierDocTableMapper = TableMapperFactory.getTableMapper("oep_dossiermgt_dossierdoc2template",
            "docTemplateId", "dossierDocId", this, dossierDocPersistence);
}
项目:OEPv2    文件:DossierProcAgencyPersistenceImpl.java   
/**
 * Initializes the dossier proc agency persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.org.oep.core.dossiermgt.model.DossierProcAgency")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<DossierProcAgency>> listenersList = new ArrayList<ModelListener<DossierProcAgency>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<DossierProcAgency>)InstanceFactory.newInstance(
                        getClassLoader(), listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        }
        catch (Exception e) {
            _log.error(e);
        }
    }
}
项目:OEPv2    文件:DossierDoc2TemplatePersistenceImpl.java   
/**
 * Initializes the dossier doc2 template persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.org.oep.core.dossiermgt.model.DossierDoc2Template")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<DossierDoc2Template>> listenersList = new ArrayList<ModelListener<DossierDoc2Template>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<DossierDoc2Template>)InstanceFactory.newInstance(
                        getClassLoader(), listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        }
        catch (Exception e) {
            _log.error(e);
        }
    }
}
项目:liferaylms-portlet    文件:CompetencePersistenceImpl.java   
/**
 * Initializes the competence persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.com.liferay.lms.model.Competence")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<Competence>> listenersList = new ArrayList<ModelListener<Competence>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<Competence>)InstanceFactory.newInstance(
                        listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        }
        catch (Exception e) {
            _log.error(e);
        }
    }
}
项目:OEPv2    文件:DossierProcBookmarkPersistenceImpl.java   
/**
 * Initializes the dossier proc bookmark persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.org.oep.core.dossiermgt.model.DossierProcBookmark")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<DossierProcBookmark>> listenersList = new ArrayList<ModelListener<DossierProcBookmark>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<DossierProcBookmark>)InstanceFactory.newInstance(
                        getClassLoader(), listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        }
        catch (Exception e) {
            _log.error(e);
        }
    }
}
项目:OEPv2    文件:PaymentRequestPersistenceImpl.java   
/**
 * Initializes the payment request persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.org.oep.core.dossiermgt.model.PaymentRequest")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<PaymentRequest>> listenersList = new ArrayList<ModelListener<PaymentRequest>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<PaymentRequest>)InstanceFactory.newInstance(
                        getClassLoader(), listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        }
        catch (Exception e) {
            _log.error(e);
        }
    }
}
项目:OEPv2    文件:DossierProc2AgentPersistenceImpl.java   
/**
 * Initializes the dossier proc2 agent persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.org.oep.core.dossiermgt.model.DossierProc2Agent")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<DossierProc2Agent>> listenersList = new ArrayList<ModelListener<DossierProc2Agent>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<DossierProc2Agent>)InstanceFactory.newInstance(
                        getClassLoader(), listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        }
        catch (Exception e) {
            _log.error(e);
        }
    }
}
项目:OEPv2    文件:DossierFolder2RolePersistenceImpl.java   
/**
 * Initializes the dossier folder2 role persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.org.oep.core.dossiermgt.model.DossierFolder2Role")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<DossierFolder2Role>> listenersList = new ArrayList<ModelListener<DossierFolder2Role>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<DossierFolder2Role>)InstanceFactory.newInstance(
                        getClassLoader(), listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        }
        catch (Exception e) {
            _log.error(e);
        }
    }
}
项目:OEPv2    文件:DossierPersistenceImpl.java   
/**
 * Initializes the dossier persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.org.oep.core.dossiermgt.model.Dossier")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<Dossier>> listenersList = new ArrayList<ModelListener<Dossier>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<Dossier>)InstanceFactory.newInstance(
                        getClassLoader(), listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        }
        catch (Exception e) {
            _log.error(e);
        }
    }
}
项目:particity    文件:AHSubscriptionPersistenceImpl.java   
/**
 * Initializes the a h subscription persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.de.fraunhofer.fokus.oefit.particity.model.AHSubscription")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<AHSubscription>> listenersList = new ArrayList<ModelListener<AHSubscription>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<AHSubscription>) InstanceFactory.newInstance(
                        getClassLoader(), listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        } catch (Exception e) {
            _log.error(e);
        }
    }

    ahSubscriptionToAHCatEntriesTableMapper = TableMapperFactory.getTableMapper("PARTICITY_sub_citm",
            "subId", "itemId", this, ahCatEntriesPersistence);
}
项目:OEPv2    文件:StatisticByAgencyPersistenceImpl.java   
/**
 * Initializes the statistic by agency persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.org.oep.core.dossiermgt.model.StatisticByAgency")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<StatisticByAgency>> listenersList = new ArrayList<ModelListener<StatisticByAgency>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<StatisticByAgency>)InstanceFactory.newInstance(
                        getClassLoader(), listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        }
        catch (Exception e) {
            _log.error(e);
        }
    }
}
项目:particity    文件:AHRegionPersistenceImpl.java   
/**
 * Initializes the a h region persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.de.fraunhofer.fokus.oefit.particity.model.AHRegion")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<AHRegion>> listenersList = new ArrayList<ModelListener<AHRegion>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<AHRegion>) InstanceFactory.newInstance(
                        getClassLoader(), listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        } catch (Exception e) {
            _log.error(e);
        }
    }
}
项目:liferaylms-portlet    文件:TestQuestionPersistenceImpl.java   
/**
 * Initializes the test question persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.com.liferay.lms.model.TestQuestion")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<TestQuestion>> listenersList = new ArrayList<ModelListener<TestQuestion>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<TestQuestion>)InstanceFactory.newInstance(
                        listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        }
        catch (Exception e) {
            _log.error(e);
        }
    }
}
项目:OEPv2    文件:StatisticByDomainPersistenceImpl.java   
/**
 * Initializes the statistic by domain persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.org.oep.core.dossiermgt.model.StatisticByDomain")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<StatisticByDomain>> listenersList = new ArrayList<ModelListener<StatisticByDomain>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<StatisticByDomain>)InstanceFactory.newInstance(
                        getClassLoader(), listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        }
        catch (Exception e) {
            _log.error(e);
        }
    }
}
项目:OEPv2    文件:EbMessagePersistenceImpl.java   
/**
 * Initializes the eb message persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.org.oep.core.dossiermgt.model.EbMessage")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<EbMessage>> listenersList = new ArrayList<ModelListener<EbMessage>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<EbMessage>)InstanceFactory.newInstance(
                        getClassLoader(), listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        }
        catch (Exception e) {
            _log.error(e);
        }
    }
}
项目:OEPv2    文件:StatisticByDayPersistenceImpl.java   
/**
 * Initializes the statistic by day persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.org.oep.core.dossiermgt.model.StatisticByDay")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<StatisticByDay>> listenersList = new ArrayList<ModelListener<StatisticByDay>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<StatisticByDay>)InstanceFactory.newInstance(
                        getClassLoader(), listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        }
        catch (Exception e) {
            _log.error(e);
        }
    }
}
项目:OEPv2    文件:PaymentConfigPersistenceImpl.java   
/**
 * Initializes the payment config persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.org.oep.core.dossiermgt.model.PaymentConfig")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<PaymentConfig>> listenersList = new ArrayList<ModelListener<PaymentConfig>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<PaymentConfig>)InstanceFactory.newInstance(
                        getClassLoader(), listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        }
        catch (Exception e) {
            _log.error(e);
        }
    }
}
项目:OEPv2    文件:DossierProcPersistenceImpl.java   
/**
 * Initializes the dossier proc persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.org.oep.core.dossiermgt.model.DossierProc")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<DossierProc>> listenersList = new ArrayList<ModelListener<DossierProc>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<DossierProc>)InstanceFactory.newInstance(
                        getClassLoader(), listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        }
        catch (Exception e) {
            _log.error(e);
        }
    }
}
项目:liferaylms-portlet    文件:ModulePersistenceImpl.java   
/**
 * Initializes the module persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.com.liferay.lms.model.Module")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<Module>> listenersList = new ArrayList<ModelListener<Module>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<Module>)InstanceFactory.newInstance(
                        listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        }
        catch (Exception e) {
            _log.error(e);
        }
    }
}
项目:OEPv2    文件:PaymentFile2DossierPersistenceImpl.java   
/**
 * Initializes the payment file2 dossier persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.org.oep.core.dossiermgt.model.PaymentFile2Dossier")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<PaymentFile2Dossier>> listenersList = new ArrayList<ModelListener<PaymentFile2Dossier>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<PaymentFile2Dossier>)InstanceFactory.newInstance(
                        getClassLoader(), listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        }
        catch (Exception e) {
            _log.error(e);
        }
    }
}
项目:liferaylms-portlet    文件:CoursePersistenceImpl.java   
/**
 * Initializes the course persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.com.liferay.lms.model.Course")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<Course>> listenersList = new ArrayList<ModelListener<Course>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<Course>)InstanceFactory.newInstance(
                        listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        }
        catch (Exception e) {
            _log.error(e);
        }
    }
}
项目:OEPv2    文件:PaymentFilePersistenceImpl.java   
/**
 * Initializes the payment file persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.org.oep.dossiermgt.model.PaymentFile")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<PaymentFile>> listenersList = new ArrayList<ModelListener<PaymentFile>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<PaymentFile>)InstanceFactory.newInstance(
                        getClassLoader(), listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        }
        catch (Exception e) {
            _log.error(e);
        }
    }
}
项目:OEPv2    文件:DocTemplatePersistenceImpl.java   
/**
 * Initializes the doc template persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.org.oep.dossiermgt.model.DocTemplate")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<DocTemplate>> listenersList = new ArrayList<ModelListener<DocTemplate>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<DocTemplate>)InstanceFactory.newInstance(
                        getClassLoader(), listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        }
        catch (Exception e) {
            _log.error(e);
        }
    }

    docTemplateToDossierDocTableMapper = TableMapperFactory.getTableMapper("oep_dossiermgt_dossierdoc2template",
            "docTemplateId", "dossierDocId", this, dossierDocPersistence);
}
项目:OEPv2    文件:DocFilePersistenceImpl.java   
/**
 * Initializes the doc file persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.org.oep.dossiermgt.model.DocFile")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<DocFile>> listenersList = new ArrayList<ModelListener<DocFile>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<DocFile>)InstanceFactory.newInstance(
                        getClassLoader(), listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        }
        catch (Exception e) {
            _log.error(e);
        }
    }
}
项目:OEPv2    文件:DossierProcBookmarkPersistenceImpl.java   
/**
 * Initializes the dossier proc bookmark persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.org.oep.dossiermgt.model.DossierProcBookmark")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<DossierProcBookmark>> listenersList = new ArrayList<ModelListener<DossierProcBookmark>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<DossierProcBookmark>)InstanceFactory.newInstance(
                        getClassLoader(), listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        }
        catch (Exception e) {
            _log.error(e);
        }
    }
}
项目:liferaylms-portlet    文件:LearningActivityResultPersistenceImpl.java   
/**
 * Initializes the learning activity result persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.com.liferay.lms.model.LearningActivityResult")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<LearningActivityResult>> listenersList = new ArrayList<ModelListener<LearningActivityResult>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<LearningActivityResult>)InstanceFactory.newInstance(
                        listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        }
        catch (Exception e) {
            _log.error(e);
        }
    }
}
项目:OEPv2    文件:DossierFolder2RolePersistenceImpl.java   
/**
 * Initializes the dossier folder2 role persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.org.oep.dossiermgt.model.DossierFolder2Role")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<DossierFolder2Role>> listenersList = new ArrayList<ModelListener<DossierFolder2Role>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<DossierFolder2Role>)InstanceFactory.newInstance(
                        getClassLoader(), listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        }
        catch (Exception e) {
            _log.error(e);
        }
    }
}
项目:OEPv2    文件:DossierPersistenceImpl.java   
/**
 * Initializes the dossier persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.org.oep.dossiermgt.model.Dossier")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<Dossier>> listenersList = new ArrayList<ModelListener<Dossier>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<Dossier>)InstanceFactory.newInstance(
                        getClassLoader(), listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        }
        catch (Exception e) {
            _log.error(e);
        }
    }
}
项目:liferaylms-portlet    文件:TestAnswerPersistenceImpl.java   
/**
 * Initializes the test answer persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.com.liferay.lms.model.TestAnswer")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<TestAnswer>> listenersList = new ArrayList<ModelListener<TestAnswer>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<TestAnswer>)InstanceFactory.newInstance(
                        listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        }
        catch (Exception e) {
            _log.error(e);
        }
    }
}
项目:OEPv2    文件:StatisticByAgencyPersistenceImpl.java   
/**
 * Initializes the statistic by agency persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.org.oep.dossiermgt.model.StatisticByAgency")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<StatisticByAgency>> listenersList = new ArrayList<ModelListener<StatisticByAgency>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<StatisticByAgency>)InstanceFactory.newInstance(
                        getClassLoader(), listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        }
        catch (Exception e) {
            _log.error(e);
        }
    }
}
项目:OEPv2    文件:DossierFolderPersistenceImpl.java   
/**
 * Initializes the dossier folder persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.org.oep.dossiermgt.model.DossierFolder")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<DossierFolder>> listenersList = new ArrayList<ModelListener<DossierFolder>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<DossierFolder>)InstanceFactory.newInstance(
                        getClassLoader(), listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        }
        catch (Exception e) {
            _log.error(e);
        }
    }
}
项目:OEPv2    文件:DossierDocPersistenceImpl.java   
/**
 * Initializes the dossier doc persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.org.oep.dossiermgt.model.DossierDoc")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<DossierDoc>> listenersList = new ArrayList<ModelListener<DossierDoc>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<DossierDoc>)InstanceFactory.newInstance(
                        getClassLoader(), listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        }
        catch (Exception e) {
            _log.error(e);
        }
    }

    dossierDocToDocTemplateTableMapper = TableMapperFactory.getTableMapper("oep_dossiermgt_dossierdoc2template",
            "dossierDocId", "docTemplateId", this, docTemplatePersistence);
}
项目:OEPv2    文件:StatisticByDomainPersistenceImpl.java   
/**
 * Initializes the statistic by domain persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.org.oep.dossiermgt.model.StatisticByDomain")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<StatisticByDomain>> listenersList = new ArrayList<ModelListener<StatisticByDomain>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<StatisticByDomain>)InstanceFactory.newInstance(
                        getClassLoader(), listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        }
        catch (Exception e) {
            _log.error(e);
        }
    }
}
项目:liferaylms-portlet    文件:SurveyResultPersistenceImpl.java   
/**
 * Initializes the survey result persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.com.liferay.lms.model.SurveyResult")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<SurveyResult>> listenersList = new ArrayList<ModelListener<SurveyResult>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<SurveyResult>)InstanceFactory.newInstance(
                        listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        }
        catch (Exception e) {
            _log.error(e);
        }
    }
}
项目:OEPv2    文件:DossierProcAgentPersistenceImpl.java   
/**
 * Initializes the dossier proc agent persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.org.oep.dossiermgt.model.DossierProcAgent")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<DossierProcAgent>> listenersList = new ArrayList<ModelListener<DossierProcAgent>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<DossierProcAgent>)InstanceFactory.newInstance(
                        getClassLoader(), listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        }
        catch (Exception e) {
            _log.error(e);
        }
    }
}
项目:OEPv2    文件:StatisticByDayPersistenceImpl.java   
/**
 * Initializes the statistic by day persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.org.oep.dossiermgt.model.StatisticByDay")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<StatisticByDay>> listenersList = new ArrayList<ModelListener<StatisticByDay>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<StatisticByDay>)InstanceFactory.newInstance(
                        getClassLoader(), listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        }
        catch (Exception e) {
            _log.error(e);
        }
    }
}
项目:OEPv2    文件:PaymentConfigPersistenceImpl.java   
/**
 * Initializes the payment config persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.org.oep.dossiermgt.model.PaymentConfig")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<PaymentConfig>> listenersList = new ArrayList<ModelListener<PaymentConfig>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<PaymentConfig>)InstanceFactory.newInstance(
                        getClassLoader(), listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        }
        catch (Exception e) {
            _log.error(e);
        }
    }
}
项目:OEPv2    文件:DocFileVersionPersistenceImpl.java   
/**
 * Initializes the doc file version persistence.
 */
public void afterPropertiesSet() {
    String[] listenerClassNames = StringUtil.split(GetterUtil.getString(
                com.liferay.util.service.ServiceProps.get(
                    "value.object.listener.org.oep.dossiermgt.model.DocFileVersion")));

    if (listenerClassNames.length > 0) {
        try {
            List<ModelListener<DocFileVersion>> listenersList = new ArrayList<ModelListener<DocFileVersion>>();

            for (String listenerClassName : listenerClassNames) {
                listenersList.add((ModelListener<DocFileVersion>)InstanceFactory.newInstance(
                        getClassLoader(), listenerClassName));
            }

            listeners = listenersList.toArray(new ModelListener[listenersList.size()]);
        }
        catch (Exception e) {
            _log.error(e);
        }
    }
}