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

net.sf.andromedaioc.bean.instantiation.InstanceProcessor Maven / Gradle / Ivy

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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy