Java EE 5 SDK

com.sun.appserv.management.j2ee.statistics
Class MapGetterInvocationHandler<T>

java.lang.Object
  extended by com.sun.appserv.management.j2ee.statistics.GetterInvocationHandler<T>
      extended by com.sun.appserv.management.j2ee.statistics.MapGetterInvocationHandler<T>
All Implemented Interfaces:
Serializable, InvocationHandler
Direct Known Subclasses:
StatsImpl

public class MapGetterInvocationHandler<T>
extends GetterInvocationHandler<T>
implements Serializable

Implements getXXX() based on a Map whose keys are the XXX part of the getXXX() method name. Serializable so that it may be used to return a result remotely.
Internal use only

See Also:
Serialized Form

Constructor Summary
MapGetterInvocationHandler(Map<String,T> map)
          Create a new instance using the Map, which is not copied.
 
Method Summary
protected  boolean containsValue(String name)
           
 boolean equals(Object rhsIn)
           
protected  Map<String,T> getMap()
           
protected  T getValue(String name)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class com.sun.appserv.management.j2ee.statistics.GetterInvocationHandler
invoke
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MapGetterInvocationHandler

public MapGetterInvocationHandler(Map<String,T> map)
Create a new instance using the Map, which is not copied.

Method Detail

getMap

protected Map<String,T> getMap()

getValue

protected T getValue(String name)
Specified by:
getValue in class GetterInvocationHandler<T>

containsValue

protected boolean containsValue(String name)
Specified by:
containsValue in class GetterInvocationHandler<T>

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object rhsIn)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.