FileDocCategorySizeDatePackage
DescriptorCache.javaAPI DocJava SE 6 API1532Tue Jun 10 00:22:02 BST 2008com.sun.jmx.mbeanserver

DescriptorCache

public class DescriptorCache extends Object

Fields Summary
private static final DescriptorCache
instance
private final WeakHashMap
map
Constructors Summary
private DescriptorCache()

    
Methods Summary
public javax.management.ImmutableDescriptorget(javax.management.ImmutableDescriptor descriptor)

        WeakReference<ImmutableDescriptor> wr = map.get(descriptor);
        ImmutableDescriptor got = (wr == null) ? null : wr.get();
        if (got != null)
            return got;
        map.put(descriptor, new WeakReference<ImmutableDescriptor>(descriptor));
        return descriptor;
    
static com.sun.jmx.mbeanserver.DescriptorCachegetInstance()

        return instance;
    
public static com.sun.jmx.mbeanserver.DescriptorCachegetInstance(javax.management.JMX proof)

        if (proof != null)
            return instance;
        else
            return null;
    
public javax.management.ImmutableDescriptorunion(javax.management.Descriptor descriptors)

        return get(ImmutableDescriptor.union(descriptors));