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

com.maxifier.mxcache.InstanceProvider 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;

import javax.annotation.Nonnull;

/**
 * MxCache uses InstanceProvider in obtain following objects:
 * 
    *
  • hashing strategies;
  • *
  • {@link com.maxifier.mxcache.provider.CachingStrategy};
  • *
  • {@link com.maxifier.mxcache.proxy.ProxyFactory};
  • *
  • {@link com.maxifier.mxcache.transform.TransformGenerator};
  • *
  • any other strategy-specific cases.
  • *
* * @author Alexander Kochurov ([email protected]) */ public interface InstanceProvider { /** * * @param cls class * @param type * @return instance of class; may return different instances every call. * @throws NoSuchInstanceException if there were problems accessing instance (e.g. class has no corresponding * constructor). */ @Nonnull T forClass(@Nonnull Class cls); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy