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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PathPlexusConverter

      public PathPlexusConverter()
  • Method Details

    • canConvert

      public boolean canConvert(Class<?> type)
      Specified by:
      canConvert in interface org.codehaus.plexus.component.configurator.converters.ConfigurationConverter
      Overrides:
      canConvert in class org.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 interface org.codehaus.plexus.component.configurator.converters.ConfigurationConverter
      Overrides:
      fromConfiguration in class org.codehaus.plexus.component.configurator.converters.basic.FileConverter
      Throws:
      org.codehaus.plexus.component.configurator.ComponentConfigurationException