Interface ConfigurationConverter

    • Method Detail

      • canConvert

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

        java.lang.Object fromConfiguration​(ConverterLookup converterLookup,
                                           PlexusConfiguration configuration,
                                           java.lang.Class type,
                                           java.lang.Class baseType,
                                           java.lang.ClassLoader classLoader,
                                           ExpressionEvaluator expressionEvaluator)
                                    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
        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
      • fromConfiguration

        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