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

com.maxifier.mxcache.UseStorageFactory Maven / Gradle / Ivy

/*
 * Copyright (c) 2008-2014 Maxifier Ltd. All Rights Reserved.
 */
package com.maxifier.mxcache;

import com.maxifier.mxcache.provider.StorageFactory;

import java.lang.annotation.*;

/**
 * This annotation allows you to specify custom storage factory.
 * 

* In order to be used your storage factory should have either a default constructor or * public constructor that accepts the following types in any order or only one of them: *

*
    *
  • {@link com.maxifier.mxcache.provider.CacheDescriptor}
  • *
  • {@link com.maxifier.mxcache.context.CacheContext}
  • *
* *

* E.g. the following signatures are ok: *

*
    *
  • (empty)
  • *
  • CacheDescriptor
  • *
  • CacheContext
  • *
  • CacheDescriptor, CacheContext
  • *
  • CacheContext, CacheDescriptor
  • *
* * @see com.maxifier.mxcache.Strategy * @see com.maxifier.mxcache.UseStorage * * @author Alexander Kochurov ([email protected]) */ @Documented @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface UseStorageFactory { Class value(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy