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

dev.vality.woody.api.proxy.InvocationTargetProvider Maven / Gradle / Ivy

There is a newer version: 2.0.8
Show newest version
package dev.vality.woody.api.proxy;

/**
 * This interface is used for hiding implementation logic of proxied target creation.
 */
public interface InvocationTargetProvider {
    /**
     * @return target type without creating target instance.
     */
    Class getTargetType();

    /**
     * @return target instance.
     */
    T getTarget();

    /**
     * Use this method return used target.
     */
    void releaseTarget(T target);

    /**
     * @return true - if it's guaranteed that returned target instance is always the same. false - if not.
     */
    boolean isSingleTarget();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy