Package aQute.bnd.osgi
Class PluginsContainer.AbstractPlugin<T>
- java.lang.Object
-
- aQute.bnd.osgi.PluginsContainer.AbstractPlugin<T>
-
- All Implemented Interfaces:
PluginsContainer.PluginProvider
,java.lang.AutoCloseable
- Enclosing class:
- PluginsContainer
final class PluginsContainer.AbstractPlugin<T> extends java.lang.Object implements PluginsContainer.PluginProvider, java.lang.AutoCloseable
-
-
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()
-
-
-
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 interfacePluginsContainer.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 interfacejava.lang.AutoCloseable
- Throws:
java.lang.Exception
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-