All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pro.jk.ejoker.utils.handlerProviderHelper.RegistDomainEventHandlerHelper Maven / Gradle / Ivy

package pro.jk.ejoker.utils.handlerProviderHelper;

import pro.jk.ejoker.common.context.annotation.assemblies.AggregateRoot;
import pro.jk.ejoker.domain.AbstractAggregateRoot;
import pro.jk.ejoker.utils.handlerProviderHelper.containers.AggregateRootHandlerPool;

public class RegistDomainEventHandlerHelper {

	static public void checkAndRegistDomainEventHandler(Class clazz) {
		if(clazz.isAnnotationPresent(AggregateRoot.class))
			AggregateRootHandlerPool.regist((Class> )clazz);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy