Class ResourceDetector
- java.lang.Object
-
- com.intergral.deep.agent.resource.ResourceDetector
-
public final class ResourceDetector extends Object
Utilities to create the resource for this agent.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Resource
configureResource(Settings settings, List<IDeepPlugin> plugins)
Create and configure a resource for this agent.static boolean
isDisabled(Class<?> providerClass, Set<String> enabledClasses, Set<String> disabledClasses)
Check if a class is disabled based on the list of enabled and disabled classes.
-
-
-
Method Detail
-
configureResource
public static Resource configureResource(Settings settings, List<IDeepPlugin> plugins)
Create and configure a resource for this agent.- Parameters:
settings
- the settings for the agentplugins
- the list of discovered plugins- Returns:
- the loaded resource
-
isDisabled
public static boolean isDisabled(Class<?> providerClass, Set<String> enabledClasses, Set<String> disabledClasses)
Check if a class is disabled based on the list of enabled and disabled classes.- Parameters:
providerClass
- the class to checkenabledClasses
- the enabled classesdisabledClasses
- the disabled classes- Returns:
true
if the class should be disabled, elsefalse
-
-