Class ProbeProviderRegistry
- java.lang.Object
-
- org.glassfish.flashlight.impl.core.ProbeProviderRegistry
-
public class ProbeProviderRegistry extends Object
- Author:
- Mahesh Kannan, Byron Nevins Date: Jun 25, 2008 Byron Nevins says: Note this class is used in one and only one place in all of GF --> FlashlightProbeProviderFactory.java Apparently it is used exclusively for making sure that 2 probes with the same name are not allowed?!? look at the putIfAbsent for clues This class has no business having any public members and should be moved to the only user's package I'm suspicious. Maybe it is called by reflection from somewhere?!?
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
cleanup()
Collection<FlashlightProbeProvider>
getAllProbeProviders()
static ProbeProviderRegistry
getInstance()
FlashlightProbeProvider
getProbeProvider(Class clz)
FlashlightProbeProvider
getProbeProvider(String moduleProviderName, String moduleName, String probeProviderName)
FlashlightProbeProvider
getProbeProvider(FlashlightProbeProvider fpp)
FlashlightProbeProvider
registerProbeProvider(FlashlightProbeProvider provider, Class clz)
void
unregisterProbeProvider(Object provider)
-
-
-
Method Detail
-
getInstance
public static ProbeProviderRegistry getInstance()
-
cleanup
public static void cleanup()
-
getAllProbeProviders
public Collection<FlashlightProbeProvider> getAllProbeProviders()
-
getProbeProvider
public FlashlightProbeProvider getProbeProvider(String moduleProviderName, String moduleName, String probeProviderName)
-
getProbeProvider
public FlashlightProbeProvider getProbeProvider(Class clz)
-
getProbeProvider
public FlashlightProbeProvider getProbeProvider(FlashlightProbeProvider fpp)
-
registerProbeProvider
public FlashlightProbeProvider registerProbeProvider(FlashlightProbeProvider provider, Class clz)
-
unregisterProbeProvider
public void unregisterProbeProvider(Object provider)
-
-