All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.fabric3.spi.scanner.FileSystemResourceFactoryRegistry Maven / Gradle / Ivy

There is a newer version: 0.7
Show newest version
package org.fabric3.spi.scanner;

import java.io.File;

/**
 * A registry for FileSystemResourceFactory instances
 *
 * @version $Rev: 714 $ $Date: 2007-08-14 20:12:13 -0700 (Tue, 14 Aug 2007) $
 */
public interface FileSystemResourceFactoryRegistry {

    /**
     * Registers the factory
     *
     * @param factory the factory to register
     */
    void register(FileSystemResourceFactory factory);

    /**
     * Creates a FileSystemResource for the given file by dispatching to a registered factory.
     *
     * @param file the file to create the FileSystemResource for
     * @return the FileSystemResource
     */
    FileSystemResource createResource(File file);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy