org.apache.solr.core

## Class PluginBag.LazyPluginHolder<T>

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

- All Implemented Interfaces:
    AutoCloseable
  Enclosing class:
    PluginBag<T>

      public static class PluginBag.LazyPluginHolder<T>
      extends PluginBag.PluginHolder<T>

  A class that loads plugins Lazily. When the get() method is invoked the Plugin is initialized and returned.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected ResourceLoader` | `resourceLoader`
    `protected SolrException` | `solrException`

    - ### Fields inherited from class org.apache.solr.core.PluginBag.PluginHolder

      `pluginInfo`

  - ### Method Summary

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

    - ### Methods inherited from class org.apache.solr.core.PluginBag.PluginHolder

      `close, getClassName`

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

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

- - ### Field Detail

    - #### solrException

          protected SolrException solrException

    - #### resourceLoader

          protected ResourceLoader resourceLoader

  - ### Method Detail

    - #### isLoaded

          public boolean isLoaded()

      Overrides:
        `isLoaded` in class `PluginBag.PluginHolder<T>`

    - #### get

          public T get()

      Overrides:
        `get` in class `PluginBag.PluginHolder<T>`

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