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

com.maxifier.mxcache.impl.instanceprovider.DelegatingProvider Maven / Gradle / Ivy

Go to download

Constains all classes necessary for launching a MxCache-instrumentated application

There is a newer version: 2.6.9
Show newest version
/*
 * Copyright (c) 2008-2014 Maxifier Ltd. All Rights Reserved.
 */
package com.maxifier.mxcache.impl.instanceprovider;

import com.maxifier.mxcache.InstanceProvider;

/**
 * @author Alexander Kochurov ([email protected])
*/
class DelegatingProvider implements Provider {
    private final InstanceProvider instanceProvider;
    private final Class cls;

    public DelegatingProvider(InstanceProvider instanceProvider, Class cls) {
        this.instanceProvider = instanceProvider;
        this.cls = cls;
    }

    @Override
    public T get() {
        return instanceProvider.forClass(cls);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy