@Experimental @Generated @ThreadSafe @Immutable public class PluginContainer extends Object implements Serializable, InputLocationTracker
Modifier and Type | Class and Description |
---|---|
static class |
PluginContainer.Builder
Builder class used to create PluginContainer instances.
|
Modifier and Type | Method and Description |
---|---|
void |
flushPluginMap()
Reset the
pluginsMap field to null |
InputLocation |
getLocation(Object key)
Gets the location of the specified field in the input source.
|
List<Plugin> |
getPlugins()
The list of plugins to use.
|
Map<String,Plugin> |
getPluginsAsMap() |
static PluginContainer.Builder |
newBuilder()
Creates a new
PluginContainer builder instance. |
static PluginContainer.Builder |
newBuilder(boolean withDefaults)
Creates a new
PluginContainer builder instance using default values or not. |
static PluginContainer.Builder |
newBuilder(PluginContainer from)
Creates a new
PluginContainer builder instance using the specified object as a basis. |
static PluginContainer.Builder |
newBuilder(PluginContainer from,
boolean forceCopy)
Creates a new
PluginContainer builder instance using the specified object as a basis. |
static PluginContainer |
newInstance()
Creates a new
PluginContainer instance. |
static PluginContainer |
newInstance(boolean withDefaults)
Creates a new
PluginContainer instance using default values or not. |
PluginContainer.Builder |
with()
Creates a new builder with this object as the basis.
|
PluginContainer |
withPlugins(Collection<Plugin> plugins)
Creates a new
PluginContainer instance using the specified plugins. |
@Nonnull public List<Plugin> getPlugins()
List<Plugin>
public InputLocation getLocation(Object key)
getLocation
in interface InputLocationTracker
@Nonnull public PluginContainer.Builder with()
Builder
@Nonnull public PluginContainer withPlugins(Collection<Plugin> plugins)
PluginContainer
instance using the specified plugins.plugins
- the new Collection<Plugin>
to usePluginContainer
with the specified plugins@Nonnull public static PluginContainer newInstance()
PluginContainer
instance.
Equivalent to newInstance( true )
.PluginContainer
newInstance(boolean)
@Nonnull public static PluginContainer newInstance(boolean withDefaults)
PluginContainer
instance using default values or not.
Equivalent to newBuilder( withDefaults ).build()
.withDefaults
- the boolean indicating whether default values should be usedPluginContainer
@Nonnull public static PluginContainer.Builder newBuilder()
PluginContainer
builder instance.
Equivalent to newBuilder( true )
.Builder
newBuilder(boolean)
@Nonnull public static PluginContainer.Builder newBuilder(boolean withDefaults)
PluginContainer
builder instance using default values or not.withDefaults
- the boolean indicating whether default values should be usedBuilder
@Nonnull public static PluginContainer.Builder newBuilder(PluginContainer from)
PluginContainer
builder instance using the specified object as a basis.
Equivalent to newBuilder( from, false )
.from
- the PluginContainer
instance to use as a basisBuilder
@Nonnull public static PluginContainer.Builder newBuilder(PluginContainer from, boolean forceCopy)
PluginContainer
builder instance using the specified object as a basis.from
- the PluginContainer
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forcedBuilder
public void flushPluginMap()
pluginsMap
field to null
public Map<String,Plugin> getPluginsAsMap()
Plugins#getKey()
as keyPlugin.getKey()
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.