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 voidclose()<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.StringtoString()
-
-
-
Method Detail
-
provide
public <X> java.util.stream.Stream<X> provide(java.lang.Class<X> type)
Description copied from interface:PluginsContainer.PluginProviderProvide the plugins for the given type if the type is equal.- Specified by:
providein 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:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-