com.sun.appserv.management.base
Interface MapCapable
- All Known Subinterfaces:
- DeploymentProgress, DeploymentSource, DeploymentStatus, MessageTrace, OperationStatus, WebServiceEndpointInfo
- All Known Implementing Classes:
- DeploymentProgressImpl, DeploymentSourceImpl, DeploymentStatusImpl, MapCapableBase, MessageTraceImpl, OperationStatusBase, WebServiceEndpointInfoImpl
public interface MapCapable
Interface which states that the object can be converted into a Map.
Type parameter must be Object or Serializable.
Field Summary |
static String |
MAP_CAPABLE_CLASS_NAME_KEY
The key for the type of Object this Map represents;
all MapCapable objects will place their classname keyed by this key
as a String into the Map returned from asMap(). |
Method Summary |
Map<String,Serializable> |
asMap()
To be capable of being serialized and deserialized by generic clients, the following
rules must be observed for the resulting Map. |
String |
getMapClassName()
Return the interface that this Map represents
(the Java classname). |
MAP_CAPABLE_CLASS_NAME_KEY
static final String MAP_CAPABLE_CLASS_NAME_KEY
- The key for the type of Object this Map represents;
all MapCapable objects will place their classname keyed by this key
as a String into the Map returned from asMap().
- See Also:
- Constant Field Values
asMap
Map<String,Serializable> asMap()
- To be capable of being serialized and deserialized by generic clients, the following
rules must be observed for the resulting Map.
The Map itself and any items it references, directly or indirectly must be of a class
of one of the following:
- any JMX OpenType
- any serializable Collection in java.util whose items meet these rules
- arrays of items whose values meet these rules
- any Throwable found in java. or javax.
- any MapCapable which can produce a Map following these rules
- Returns:
- an equivalent Map representing the original object.
getMapClassName
String getMapClassName()
- Return the interface that this Map represents
(the Java classname).
Submit a bug or feature Copyright 2006 Sun Microsystems, Inc. All rights reserved.