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

com.github.nill14.utils.init.api.IPojoInitializer Maven / Gradle / Ivy

package com.github.nill14.utils.init.api;

import java.io.Serializable;

import javax.inject.Provider;

import com.github.nill14.utils.init.impl.ChainingPojoInitializer;
import com.github.nill14.utils.init.impl.EmptyPojoInitializer;

public interface IPojoInitializer extends Serializable {

	void init(Provider factory, T instance);
	
	void destroy(Provider factory, T instance);
	
	static  IPojoInitializer empty() {
		return EmptyPojoInitializer.getInstance();
	}
	
	static IPojoInitializer standard() {
		return ChainingPojoInitializer.defaultInitializer();
	}
}