当前位置: 首页>>代码示例>>Java>>正文


Java InstanceFactory类代码示例

本文整理汇总了Java中com.liferay.portal.kernel.util.InstanceFactory的典型用法代码示例。如果您正苦于以下问题:Java InstanceFactory类的具体用法?Java InstanceFactory怎么用?Java InstanceFactory使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


InstanceFactory类属于com.liferay.portal.kernel.util包,在下文中一共展示了InstanceFactory类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: afterPropertiesSet

import com.liferay.portal.kernel.util.InstanceFactory; //导入依赖的package包/类
/**
 * 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);
		}
	}
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:25,代码来源:EbPartnerShipPersistenceImpl.java

示例2: afterPropertiesSet

import com.liferay.portal.kernel.util.InstanceFactory; //导入依赖的package包/类
/**
 * 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);
		}
	}
}
 
开发者ID:TelefonicaED,项目名称:liferaylms-portlet,代码行数:25,代码来源:ActivityTriesDeletedPersistenceImpl.java

示例3: afterPropertiesSet

import com.liferay.portal.kernel.util.InstanceFactory; //导入依赖的package包/类
/**
 * 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);
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:28,代码来源:DocTemplatePersistenceImpl.java

示例4: afterPropertiesSet

import com.liferay.portal.kernel.util.InstanceFactory; //导入依赖的package包/类
/**
 * 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);
		}
	}
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:25,代码来源:DossierProcAgencyPersistenceImpl.java

示例5: afterPropertiesSet

import com.liferay.portal.kernel.util.InstanceFactory; //导入依赖的package包/类
/**
 * 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);
		}
	}
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:25,代码来源:DossierDoc2TemplatePersistenceImpl.java

示例6: afterPropertiesSet

import com.liferay.portal.kernel.util.InstanceFactory; //导入依赖的package包/类
/**
 * 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);
		}
	}
}
 
开发者ID:TelefonicaED,项目名称:liferaylms-portlet,代码行数:25,代码来源:CompetencePersistenceImpl.java

示例7: afterPropertiesSet

import com.liferay.portal.kernel.util.InstanceFactory; //导入依赖的package包/类
/**
 * 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);
		}
	}
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:25,代码来源:DossierProcBookmarkPersistenceImpl.java

示例8: afterPropertiesSet

import com.liferay.portal.kernel.util.InstanceFactory; //导入依赖的package包/类
/**
 * 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);
		}
	}
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:25,代码来源:PaymentRequestPersistenceImpl.java

示例9: afterPropertiesSet

import com.liferay.portal.kernel.util.InstanceFactory; //导入依赖的package包/类
/**
 * 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);
		}
	}
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:25,代码来源:DossierProc2AgentPersistenceImpl.java

示例10: afterPropertiesSet

import com.liferay.portal.kernel.util.InstanceFactory; //导入依赖的package包/类
/**
 * 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);
		}
	}
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:25,代码来源:DossierFolder2RolePersistenceImpl.java

示例11: afterPropertiesSet

import com.liferay.portal.kernel.util.InstanceFactory; //导入依赖的package包/类
/**
 * 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);
		}
	}
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:25,代码来源:DossierPersistenceImpl.java

示例12: afterPropertiesSet

import com.liferay.portal.kernel.util.InstanceFactory; //导入依赖的package包/类
/**
 * 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);
}
 
开发者ID:fraunhoferfokus,项目名称:particity,代码行数:27,代码来源:AHSubscriptionPersistenceImpl.java

示例13: afterPropertiesSet

import com.liferay.portal.kernel.util.InstanceFactory; //导入依赖的package包/类
/**
 * 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);
		}
	}
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:25,代码来源:StatisticByAgencyPersistenceImpl.java

示例14: afterPropertiesSet

import com.liferay.portal.kernel.util.InstanceFactory; //导入依赖的package包/类
/**
 * 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);
        }
    }
}
 
开发者ID:fraunhoferfokus,项目名称:particity,代码行数:24,代码来源:AHRegionPersistenceImpl.java

示例15: afterPropertiesSet

import com.liferay.portal.kernel.util.InstanceFactory; //导入依赖的package包/类
/**
 * 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);
		}
	}
}
 
开发者ID:TelefonicaED,项目名称:liferaylms-portlet,代码行数:25,代码来源:TestQuestionPersistenceImpl.java


注:本文中的com.liferay.portal.kernel.util.InstanceFactory类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。