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

ars.database.service.event.InitEvent Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
package ars.database.service.event;

import ars.invoke.request.Requester;
import ars.database.service.Service;
import ars.database.service.event.ServiceEvent;

/**
 * 对象实例初始化事件
 * 
 * @author yongqiangwu
 * 
 */
public class InitEvent extends ServiceEvent {
	private static final long serialVersionUID = 1L;

	private transient Object entity; // 对象实体

	public InitEvent(Requester requester, Service service, Object entity) {
		super(requester, Type.INIT, service);
		if (entity == null) {
			throw new IllegalArgumentException("Illegal entity:" + entity);
		}
		this.entity = entity;
	}

	public Object getEntity() {
		return entity;
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy