com.maxifier.mxcache.impl.instanceprovider.ConstProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mxcache-runtime Show documentation
Show all versions of mxcache-runtime Show documentation
Constains all classes necessary for launching a MxCache-instrumentated application
/*
* Copyright (c) 2008-2014 Maxifier Ltd. All Rights Reserved.
*/
package com.maxifier.mxcache.impl.instanceprovider;
/**
* @author Alexander Kochurov ([email protected])
*/
class ConstProvider implements Provider {
private final T instance;
public ConstProvider(T instance) {
this.instance = instance;
}
@Override
public Object get() {
return instance;
}
}