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

cz.jalasoft.lifeconfig.keyresolver.AbstractPropertyKeyResolverDecorator Maven / Gradle / Ivy

package cz.jalasoft.lifeconfig.keyresolver;

import java.lang.reflect.Method;

/**
 * A common parent for all decorators of {@link PropertyKeyResolver}
 *
 * @author Honza Lastovicka ([email protected])
 * @since 2016-08-16.
 */
abstract class AbstractPropertyKeyResolverDecorator implements PropertyKeyResolver {

    private final PropertyKeyResolver decorated;

    AbstractPropertyKeyResolverDecorator(PropertyKeyResolver decorated) {
        this.decorated = decorated;
    }

    final String delegate(Method method) {
        return decorated.resolveKey(method);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy