Class EnumConverter

    • Constructor Detail

      • EnumConverter

        public EnumConverter()
    • Method Detail

      • canConvert

        public boolean canConvert​(java.lang.Class type)
      • fromConfiguration

        public java.lang.Object fromConfiguration​(ConverterLookup converterLookup,
                                                  PlexusConfiguration configuration,
                                                  java.lang.Class type,
                                                  java.lang.Class baseType,
                                                  java.lang.ClassLoader classLoader,
                                                  ExpressionEvaluator expressionEvaluator,
                                                  ConfigurationListener listener)
                                           throws ComponentConfigurationException
        Parameters:
        converterLookup - Repository of available converters
        configuration - PlexusConfiguration
        type - the type of object to read
        baseType - the type of object the the source is
        classLoader - ClassLoader which should be used for loading classes
        expressionEvaluator - the expression evaluator to use for expressions
        listener - ConfigurationListener.
        Returns:
        the object
        Throws:
        ComponentConfigurationException - in case of an error. TODO: a better way, instead of baseType, would be to pass in a factory for new classes that could be based from the given package