Plugin implementations.
| Modifier and Type | Field and Description |
|---|---|
| private Collection |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected synchronized Collection | findAllInstances()
Finds implementations of the given interface or class and returns instances of them. |
| private Optional | |
| protected T | Returns: null if no plugins are found or have a priority greater than zero.Finds the plugin for which |
| protected abstract Class | |
| protected Set | |
| protected abstract int | getPriority(T obj, Object... args)
Returns the priority of the given object based on the passed args array. |
| public synchronized void | |
| protected synchronized void |
| allInstances | back to summary |
|---|---|
| private Collection<T> allInstances | |
| AbstractPluginFactory | back to summary |
|---|---|
| protected AbstractPluginFactory() | |
| findAllInstances | back to summary |
|---|---|
| protected synchronized Collection Finds implementations of the given interface or class and returns instances of them.
Standard implementation uses | |
| getForcedPluginIfAvailable | back to summary |
|---|---|
| private Optional | |
| getPlugin | back to summary |
|---|---|
| protected T getPlugin(final Object... args) Finds the plugin for which
However, if there is a
| |
| getPluginClass | back to summary |
|---|---|
| protected abstract Class | |
| getPlugins | back to summary |
|---|---|
| protected Set | |
| getPriority | back to summary |
|---|---|
| protected abstract int getPriority(T obj, Object... args) Returns the priority of the given object based on the passed args array.
The args are created as part of the custom public getPlugin method in implementations are passed through | |
| register | back to summary |
|---|---|
| public synchronized void register(T plugin) | |
| removeInstance | back to summary |
|---|---|
| protected synchronized void removeInstance(T instance) | |