org.infinispan.cdi.interceptor.context
Class CacheKeyInvocationContextImpl<A extends Annotation>

java.lang.Object
  extended by org.infinispan.cdi.interceptor.context.CacheKeyInvocationContextImpl<A>
All Implemented Interfaces:
javax.cache.annotation.CacheInvocationContext<A>, javax.cache.annotation.CacheKeyInvocationContext<A>, javax.cache.annotation.CacheMethodDetails<A>

public class CacheKeyInvocationContextImpl<A extends Annotation>
extends Object
implements javax.cache.annotation.CacheKeyInvocationContext<A>

The CacheKeyInvocationContext implementation.

Author:
Kevin Pollet (C) 2011 SERLI

Constructor Summary
CacheKeyInvocationContextImpl(InvocationContext invocationContext, MethodMetaData<A> methodMetaData)
           
 
Method Summary
 javax.cache.annotation.CacheInvocationParameter[] getAllParameters()
           
 Set<Annotation> getAnnotations()
           
 A getCacheAnnotation()
           
 javax.cache.annotation.CacheKeyGenerator getCacheKeyGenerator()
           
 String getCacheName()
           
 javax.cache.annotation.CacheInvocationParameter[] getKeyParameters()
           
 Method getMethod()
           
 Object getTarget()
           
 javax.cache.annotation.CacheInvocationParameter getValueParameter()
           
 String toString()
           
<T> T
unwrap(Class<T> cls)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CacheKeyInvocationContextImpl

public CacheKeyInvocationContextImpl(InvocationContext invocationContext,
                                     MethodMetaData<A> methodMetaData)
Method Detail

getTarget

public Object getTarget()
Specified by:
getTarget in interface javax.cache.annotation.CacheInvocationContext<A extends Annotation>

getAllParameters

public javax.cache.annotation.CacheInvocationParameter[] getAllParameters()
Specified by:
getAllParameters in interface javax.cache.annotation.CacheInvocationContext<A extends Annotation>

getKeyParameters

public javax.cache.annotation.CacheInvocationParameter[] getKeyParameters()
Specified by:
getKeyParameters in interface javax.cache.annotation.CacheKeyInvocationContext<A extends Annotation>

getValueParameter

public javax.cache.annotation.CacheInvocationParameter getValueParameter()
Specified by:
getValueParameter in interface javax.cache.annotation.CacheKeyInvocationContext<A extends Annotation>

unwrap

public <T> T unwrap(Class<T> cls)
Specified by:
unwrap in interface javax.cache.annotation.CacheInvocationContext<A extends Annotation>

getMethod

public Method getMethod()
Specified by:
getMethod in interface javax.cache.annotation.CacheMethodDetails<A extends Annotation>

getAnnotations

public Set<Annotation> getAnnotations()
Specified by:
getAnnotations in interface javax.cache.annotation.CacheMethodDetails<A extends Annotation>

getCacheAnnotation

public A getCacheAnnotation()
Specified by:
getCacheAnnotation in interface javax.cache.annotation.CacheMethodDetails<A extends Annotation>

getCacheName

public String getCacheName()
Specified by:
getCacheName in interface javax.cache.annotation.CacheMethodDetails<A extends Annotation>

getCacheKeyGenerator

public javax.cache.annotation.CacheKeyGenerator getCacheKeyGenerator()

toString

public String toString()
Overrides:
toString in class Object

-->

Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.