Class PathPlexusConverter
java.lang.Object
org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter
org.codehaus.plexus.component.configurator.converters.basic.AbstractBasicConverter
org.codehaus.plexus.component.configurator.converters.basic.FileConverter
io.github.ascopes.protobufmavenplugin.fs.PathPlexusConverter
- All Implemented Interfaces:
org.codehaus.plexus.component.configurator.converters.ConfigurationConverter
public final class PathPlexusConverter
extends org.codehaus.plexus.component.configurator.converters.basic.FileConverter
Plexus/Sisu parameter converter for Path objects on the root file system.
We provide this to avoid using the URL and File APIs in the Mojo interface.
Newer versions of Plexus/Sisu provide this for us, so in the future, we can remove these components (looks to be supported from Maven 3.9.x).
- Since:
- 3.1.3
- Author:
- Ashley Scopes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
canConvert
(Class<?> type) fromConfiguration
(org.codehaus.plexus.component.configurator.converters.lookup.ConverterLookup lookup, org.codehaus.plexus.configuration.PlexusConfiguration configuration, @Nullable Class<?> type, Class<?> enclosingType, ClassLoader loader, org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator evaluator, @Nullable org.codehaus.plexus.component.configurator.ConfigurationListener listener) Methods inherited from class org.codehaus.plexus.component.configurator.converters.basic.FileConverter
fromString
Methods inherited from class org.codehaus.plexus.component.configurator.converters.basic.AbstractBasicConverter
fromExpression, fromString
Methods inherited from class org.codehaus.plexus.component.configurator.converters.AbstractConfigurationConverter
failIfNotTypeCompatible, fromConfiguration, fromExpression, fromExpression, fromXML, getClassForImplementationHint, instantiateObject
-
Constructor Details
-
PathPlexusConverter
public PathPlexusConverter()
-
-
Method Details
-
canConvert
- Specified by:
canConvert
in interfaceorg.codehaus.plexus.component.configurator.converters.ConfigurationConverter
- Overrides:
canConvert
in classorg.codehaus.plexus.component.configurator.converters.basic.FileConverter
-
fromConfiguration
public Object fromConfiguration(org.codehaus.plexus.component.configurator.converters.lookup.ConverterLookup lookup, org.codehaus.plexus.configuration.PlexusConfiguration configuration, @Nullable Class<?> type, Class<?> enclosingType, ClassLoader loader, org.codehaus.plexus.component.configurator.expression.ExpressionEvaluator evaluator, @Nullable org.codehaus.plexus.component.configurator.ConfigurationListener listener) throws org.codehaus.plexus.component.configurator.ComponentConfigurationException - Specified by:
fromConfiguration
in interfaceorg.codehaus.plexus.component.configurator.converters.ConfigurationConverter
- Overrides:
fromConfiguration
in classorg.codehaus.plexus.component.configurator.converters.basic.FileConverter
- Throws:
org.codehaus.plexus.component.configurator.ComponentConfigurationException
-