Skip to content

Commit

Permalink
Fix more todos
Browse files Browse the repository at this point in the history
  • Loading branch information
gregrluck committed Nov 20, 2013
1 parent a817c16 commit 51a5f1e
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
Expand Up @@ -94,7 +94,6 @@ public StaticCacheKeyInvocationContext<A> getStaticCacheKeyInvocationContext() {
*/
@Override
protected Object[] getParameters(I invocation) {
// TODO Auto-generated method stub
return null;
}

Expand All @@ -104,7 +103,6 @@ protected Object[] getParameters(I invocation) {
*/
@Override
protected Method getMethod(I invocation) {
// TODO Auto-generated method stub
return null;
}

Expand All @@ -114,7 +112,6 @@ protected Method getMethod(I invocation) {
*/
@Override
protected Object getTarget(I invocation) {
// TODO Auto-generated method stub
return null;
}

Expand Down
Expand Up @@ -24,16 +24,17 @@
/**
* Class to help implementers
*
* todo add key and value types
*
* @param <K> the type of keys maintained by this map
* @param <V> the type of mapped values*
* @author Yannis Cosmadopoulos
* @since 1.0
*/
public class RICacheMXBean<K, V> implements CacheMXBean {

private final Cache<K, V> cache;



/**
* Constructor
*
Expand All @@ -43,6 +44,16 @@ public RICacheMXBean(Cache<K, V> cache) {
this.cache = cache;
}

@Override
public String getKeyType() {
return cache.getConfiguration(CompleteConfiguration.class).getKeyType().getName();
}

@Override
public String getValueType() {
return cache.getConfiguration(CompleteConfiguration.class).getValueType().getName();
}

/**
* {@inheritDoc}
*/
Expand Down

0 comments on commit 51a5f1e

Please sign in to comment.