org.apache.solr.core

## Class PluginBag.PluginHolder<T>

- java.lang.Object
- - org.apache.solr.core.PluginBag.PluginHolder<T>

- All Implemented Interfaces:
    AutoCloseable
  Direct Known Subclasses:
    PluginBag.LazyPluginHolder
  Enclosing class:
    PluginBag<T>

      public static class PluginBag.PluginHolder<T>
      extends Object
      implements 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 and Description
    --- | ---
    `protected PluginInfo` | `pluginInfo`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `PluginHolder(PluginInfo info)`
    `PluginHolder(PluginInfo info, T inst)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()`
    `T` | `get()`
    `String` | `getClassName()`
    `boolean` | `isLoaded()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### pluginInfo

          protected final PluginInfo pluginInfo

  - ### Constructor Detail

    - #### PluginHolder

          public PluginHolder(PluginInfo info)

    - #### PluginHolder

          public PluginHolder(PluginInfo info,
                              T inst)

  - ### Method Detail

    - #### get

          public T get()

    - #### isLoaded

          public boolean isLoaded()

    - #### close

          public void close()
                     throws Exception

      Specified by:
        `close` in interface `AutoCloseable`
      Throws:
        `Exception`

    - #### getClassName

          public String getClassName()

Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.