net.sf.andromedaioc.bean.instantiation.InstanceProcessor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of andromeda-ioc Show documentation
Show all versions of andromeda-ioc Show documentation
Inversion of Control Framework for Android
The newest version!
package net.sf.andromedaioc.bean.instantiation;
/**
* Processor for created instance. Used in Instantiator implementation to perform additional
* instance processing (like collection items adding for Set and List beans)
*
* @author Alexey Mitrov
*/
public interface InstanceProcessor {
/**
* Empty processor that returns unchanged input
*/
InstanceProcessor EMPTY_PROCESSOR = new InstanceProcessor() {
public Object process(Object instance) {
return instance;
}
};
/**
* Process instance
* @param instance instance to be processed
* @return processed instance
*/
Object process(Object instance);
}