Package org.apache.solr.core
Class PluginBag<T>
java.lang.Object
org.apache.solr.core.PluginBag<T>
- All Implemented Interfaces:
AutoCloseable
This manages the lifecycle of a set of plugin of the same type .
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAllows JAX-RS 'filters' to find the requestHandler (if any) associated particular JAX-RS resource classesclassA class that loads plugins Lazily.static classAn indirect reference to a plugin. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckContains(Collection<String> names) Check if any of the mentioned names are missing.voidclose()Close this registry.static voidcloseQuietly(Object inst) booleancreatePlugin(PluginInfo info) Get a plugin by name.Fetches a plugin by name , or the defaultorg.glassfish.jersey.server.ResourceConfigstatic voidinitInstance(Object inst, PluginInfo info) booleanTo check if a plugin by a specified name is already loadedkeySet()put(String name, PluginBag.PluginHolder<T> plugin) register a plugin by a name
-
Constructor Details
-
PluginBag
Pass needThreadSafety=true if plugins can be added and removed concurrently with lookups. -
PluginBag
Constructs a non-threadsafe plugin registry
-
-
Method Details
-
getJaxrsRegistry
-
initInstance
-
checkContains
Check if any of the mentioned names are missing. If yes, return the Set of missing names -
createPlugin
-
get
Get a plugin by name. If the plugin is not already instantiated, it is done here -
get
Fetches a plugin by name , or the default- Parameters:
name- name using which it is registereduseDefault- Return the default , if a plugin by that name does not exist
-
keySet
-
put
register a plugin by a name -
put
-
getRegistry
-
contains
-
isLoaded
To check if a plugin by a specified name is already loaded -
close
public void close()Close this registry. This will in turn call a close on all the contained plugins- Specified by:
closein interfaceAutoCloseable
-
closeQuietly
-
v2lookup
-
getApiBag
-
getJerseyEndpoints
public org.glassfish.jersey.server.ResourceConfig getJerseyEndpoints()
-