Package org.graylog2.shared.plugins
Class DocumentationRestResourceClasses
java.lang.Object
org.graylog2.shared.plugins.DocumentationRestResourceClasses
This class provides access to the system and plugin API resources that are available through the Guice multi-binder.
We need this wrapper class to be able to inject the Set<Class<? extends PluginRestResource>> and
the named system resources into a Jersey REST resource. HK2 does not allow to inject this directly into the
resource class.
-
Constructor Summary
ConstructorDescriptionDocumentationRestResourceClasses
(Map<String, Set<Class<? extends PluginRestResource>>> pluginRestResources, Set<Class<?>> systemResources) -
Method Summary
Modifier and TypeMethodDescriptionMap<String,
Set<Class<? extends PluginRestResource>>> Returns a map of plugin package names to Sets ofPluginRestResource
classes.Returns all system resources.
-
Constructor Details
-
DocumentationRestResourceClasses
-
-
Method Details
-
getPluginResourcesMap
Returns a map of plugin package names to Sets ofPluginRestResource
classes.- Returns:
- the map
-
getSystemResources
Returns all system resources.- Returns:
- the set of system resource classes
-