Package org.apache.solr.core
Class PluginBag.PluginHolder<T>
- java.lang.Object
-
- org.apache.solr.core.PluginBag.PluginHolder<T>
-
- All Implemented Interfaces:
AutoCloseable
,Supplier<T>
- Direct Known Subclasses:
PackagePluginHolder
,PluginBag.LazyPluginHolder
,UpdateRequestProcessorChain.LazyUpdateProcessorFactoryHolder
public static class PluginBag.PluginHolder<T> extends Object implements Supplier<T>, AutoCloseable
An indirect reference to a plugin. It just wraps a plugin instance. subclasses may choose to lazily load the plugin
-
-
Field Summary
Fields Modifier and Type Field Description protected T
inst
protected PluginInfo
pluginInfo
-
Constructor Summary
Constructors Constructor Description PluginHolder(PluginInfo info)
PluginHolder(PluginInfo info, T inst)
PluginHolder(T inst, SolrConfig.SolrPluginInfo info)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
T
get()
String
getClassName()
Optional<T>
getInstance()
PluginInfo
getPluginInfo()
boolean
isLoaded()
String
toString()
-
-
-
Field Detail
-
inst
protected volatile T inst
-
pluginInfo
protected final PluginInfo pluginInfo
-
-
Constructor Detail
-
PluginHolder
public PluginHolder(T inst, SolrConfig.SolrPluginInfo info)
-
PluginHolder
public PluginHolder(PluginInfo info)
-
PluginHolder
public PluginHolder(PluginInfo info, T inst)
-
-
Method Detail
-
isLoaded
public boolean isLoaded()
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
-
getClassName
public String getClassName()
-
getPluginInfo
public PluginInfo getPluginInfo()
-
-