Class PluginsContainer.AbstractPlugin<T>

    • Constructor Summary

      Constructors 
      Constructor Description
      AbstractPlugin​(java.lang.Class<T> type, Attrs attrs)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      <X> java.util.stream.Stream<X> provide​(java.lang.Class<X> type)
      Provide the plugins for the given type if the type is equal.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • serviceClass

        private final java.lang.Class<T> serviceClass
      • externals

        private final Memoize<java.util.List<T>> externals
      • attrs

        private final Attrs attrs
      • workspace

        private volatile Workspace workspace
    • Constructor Detail

      • AbstractPlugin

        AbstractPlugin​(java.lang.Class<T> type,
                       Attrs attrs)
    • Method Detail

      • provide

        public <X> java.util.stream.Stream<X> provide​(java.lang.Class<X> type)
        Description copied from interface: PluginsContainer.PluginProvider
        Provide the plugins for the given type if the type is equal.
        Specified by:
        provide in interface PluginsContainer.PluginProvider
        Type Parameters:
        X - the requested type
        Parameters:
        type - the class of the provider type, never null
        Returns:
        a stream supplying the provided plugins, can be empty
      • close

        public void close()
                   throws java.lang.Exception
        Specified by:
        close in interface java.lang.AutoCloseable
        Throws:
        java.lang.Exception
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object