@HashCodeAndEqualsPlugin.Enhance public static class Plugin.Factory.UsingReflection extends java.lang.Object implements Plugin.Factory
Modifier and Type | Class and Description |
---|---|
static interface |
Plugin.Factory.UsingReflection.ArgumentResolver
Allows to resolve arguments for a
Plugin constructor. |
protected static interface |
Plugin.Factory.UsingReflection.Instantiator
An instantiator is responsible for invoking a plugin constructor reflectively.
|
static interface |
Plugin.Factory.UsingReflection.Priority
Indicates that a constructor should be treated with a given priority if several constructors can be resolved.
|
Plugin.Factory.Simple, Plugin.Factory.UsingReflection
Modifier and Type | Field and Description |
---|---|
private java.util.List<Plugin.Factory.UsingReflection.ArgumentResolver> |
argumentResolvers
A list of argument providers that can be used for instantiating the plugin.
|
private java.lang.Class<? extends Plugin> |
type
The plugin type.
|
Modifier | Constructor and Description |
---|---|
|
UsingReflection(java.lang.Class<? extends Plugin> type)
Creates a plugin factory that uses reflection for creating a plugin.
|
protected |
UsingReflection(java.lang.Class<? extends Plugin> type,
java.util.List<Plugin.Factory.UsingReflection.ArgumentResolver> argumentResolvers)
Creates a plugin factory that uses reflection for creating a plugin.
|
Modifier and Type | Method and Description |
---|---|
Plugin |
make()
Returns a plugin that can be used for a transformation and which is subsequently closed.
|
Plugin.Factory.UsingReflection |
with(java.util.List<? extends Plugin.Factory.UsingReflection.ArgumentResolver> argumentResolvers)
Appends the supplied argument resolvers.
|
Plugin.Factory.UsingReflection |
with(Plugin.Factory.UsingReflection.ArgumentResolver... argumentResolver)
Appends the supplied argument resolvers.
|
private final java.lang.Class<? extends Plugin> type
private final java.util.List<Plugin.Factory.UsingReflection.ArgumentResolver> argumentResolvers
public UsingReflection(java.lang.Class<? extends Plugin> type)
type
- The plugin type.protected UsingReflection(java.lang.Class<? extends Plugin> type, java.util.List<Plugin.Factory.UsingReflection.ArgumentResolver> argumentResolvers)
type
- The plugin type.argumentResolvers
- A list of argument providers that can be used for instantiating the plugin.public Plugin.Factory.UsingReflection with(Plugin.Factory.UsingReflection.ArgumentResolver... argumentResolver)
argumentResolver
- A list of argument providers that can be used for instantiating the plugin.public Plugin.Factory.UsingReflection with(java.util.List<? extends Plugin.Factory.UsingReflection.ArgumentResolver> argumentResolvers)
argumentResolvers
- A list of argument providers that can be used for instantiating the plugin.public Plugin make()
make
in interface Plugin.Factory