Class DataSourceCompositeResolver

    • Constructor Detail

      • DataSourceCompositeResolver

        public DataSourceCompositeResolver​(DataSourceResolver[] dataSourceResolvers,
                                           boolean isLenient)
        Constructor.
        Parameters:
        dataSourceResolvers - a list of of resolvers being used
        isLenient - shall we ignore resources not found or throw an exception?
    • Method Detail

      • resolve

        public javax.activation.DataSource resolve​(java.lang.String resourceLocation)
                                            throws java.io.IOException
        Resolves the given resource location to a DataSource.
        Parameters:
        resourceLocation - the location of the resource
        Returns:
        the DataSource
        Throws:
        java.io.IOException - the resource was not found
      • resolve

        public javax.activation.DataSource resolve​(java.lang.String resourceLocation,
                                                   boolean isLenient)
                                            throws java.io.IOException
        Resolves the given resource location to a DataSource.
        Parameters:
        resourceLocation - the location of the resource
        isLenient - shall we ignore resources not found or complain with an exception?
        Returns:
        the data source containing the resource or null if the resource was not found in lenient mode
        Throws:
        java.io.IOException - resolving the resource failed