本文整理汇总了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);
}
}
}
示例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);
}
}
}
示例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);
}
示例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);
}
}
}
示例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);
}
}
}
示例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);
}
}
}
示例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);
}
}
}
示例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);
}
}
}
示例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);
}
}
}
示例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);
}
}
}
示例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);
}
}
}
示例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);
}
示例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);
}
}
}
示例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);
}
}
}
示例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);
}
}
}