com.sun.appserv.management.j2ee.statistics
Class MapGetterInvocationHandler<T>
java.lang.Object
com.sun.appserv.management.j2ee.statistics.GetterInvocationHandler<T>
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
MapGetterInvocationHandler
public MapGetterInvocationHandler(Map<String,T> map)
- Create a new instance using the Map, which is not copied.
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
Submit a bug or feature Copyright 2006 Sun Microsystems, Inc. All rights reserved.