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.8).
- Since:
- 3.1.3
- Author:
- Ashley Scopes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanConvert(Class<?> type) fromConfiguration(org.codehaus.plexus.component.configurator.converters.lookup.ConverterLookup lookup, org.codehaus.plexus.configuration.PlexusConfiguration configuration, Class<?> type, @Nullable Class<?> enclosingType, @Nullable 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
fromStringMethods inherited from class org.codehaus.plexus.component.configurator.converters.basic.AbstractBasicConverter
fromExpression, fromStringMethods 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:
canConvertin interfaceorg.codehaus.plexus.component.configurator.converters.ConfigurationConverter- Overrides:
canConvertin 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, Class<?> type, @Nullable Class<?> enclosingType, @Nullable 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:
fromConfigurationin interfaceorg.codehaus.plexus.component.configurator.converters.ConfigurationConverter- Overrides:
fromConfigurationin classorg.codehaus.plexus.component.configurator.converters.basic.FileConverter- Throws:
org.codehaus.plexus.component.configurator.ComponentConfigurationException
-