@Experimental @Generated @ThreadSafe @Immutable public class PluginConfiguration extends PluginContainer implements Serializable, InputLocationTracker
Modifier and Type | Class and Description |
---|---|
static class |
PluginConfiguration.Builder
Builder class used to create PluginConfiguration instances.
|
Modifier and Type | Method and Description |
---|---|
InputLocation |
getLocation(Object key)
Gets the location of the specified field in the input source.
|
PluginManagement |
getPluginManagement()
Default plugin information to be made available for reference by projects
derived from this one.
|
static PluginConfiguration.Builder |
newBuilder()
Creates a new
PluginConfiguration builder instance. |
static PluginConfiguration.Builder |
newBuilder(boolean withDefaults)
Creates a new
PluginConfiguration builder instance using default values or not. |
static PluginConfiguration.Builder |
newBuilder(PluginConfiguration from)
Creates a new
PluginConfiguration builder instance using the specified object as a basis. |
static PluginConfiguration.Builder |
newBuilder(PluginConfiguration from,
boolean forceCopy)
Creates a new
PluginConfiguration builder instance using the specified object as a basis. |
static PluginConfiguration |
newInstance()
Creates a new
PluginConfiguration instance. |
static PluginConfiguration |
newInstance(boolean withDefaults)
Creates a new
PluginConfiguration instance using default values or not. |
PluginConfiguration.Builder |
with()
Creates a new builder with this object as the basis.
|
PluginConfiguration |
withPluginManagement(PluginManagement pluginManagement)
Creates a new
PluginConfiguration instance using the specified pluginManagement. |
PluginConfiguration |
withPlugins(Collection<Plugin> plugins)
Creates a new
PluginConfiguration instance using the specified plugins. |
flushPluginMap, getPlugins, getPluginsAsMap, newBuilder, newBuilder
public PluginManagement getPluginManagement()
PluginManagement
public InputLocation getLocation(Object key)
getLocation
in interface InputLocationTracker
getLocation
in class PluginContainer
@Nonnull public PluginConfiguration.Builder with()
with
in class PluginContainer
Builder
@Nonnull public PluginConfiguration withPlugins(Collection<Plugin> plugins)
PluginConfiguration
instance using the specified plugins.withPlugins
in class PluginContainer
plugins
- the new Collection<Plugin>
to usePluginConfiguration
with the specified plugins@Nonnull public PluginConfiguration withPluginManagement(PluginManagement pluginManagement)
PluginConfiguration
instance using the specified pluginManagement.pluginManagement
- the new PluginManagement
to usePluginConfiguration
with the specified pluginManagement@Nonnull public static PluginConfiguration newInstance()
PluginConfiguration
instance.
Equivalent to newInstance( true )
.PluginConfiguration
newInstance(boolean)
@Nonnull public static PluginConfiguration newInstance(boolean withDefaults)
PluginConfiguration
instance using default values or not.
Equivalent to newBuilder( withDefaults ).build()
.withDefaults
- the boolean indicating whether default values should be usedPluginConfiguration
@Nonnull public static PluginConfiguration.Builder newBuilder()
PluginConfiguration
builder instance.
Equivalent to newBuilder( true )
.Builder
newBuilder(boolean)
@Nonnull public static PluginConfiguration.Builder newBuilder(boolean withDefaults)
PluginConfiguration
builder instance using default values or not.withDefaults
- the boolean indicating whether default values should be usedBuilder
@Nonnull public static PluginConfiguration.Builder newBuilder(PluginConfiguration from)
PluginConfiguration
builder instance using the specified object as a basis.
Equivalent to newBuilder( from, false )
.from
- the PluginConfiguration
instance to use as a basisBuilder
@Nonnull public static PluginConfiguration.Builder newBuilder(PluginConfiguration from, boolean forceCopy)
PluginConfiguration
builder instance using the specified object as a basis.from
- the PluginConfiguration
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forcedBuilder
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.