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

org.nakedobjects.nof.boot.system.FrameworkPropertiesLoader Maven / Gradle / Ivy

There is a newer version: 3.0.3
Show newest version
package org.nakedobjects.nof.boot.system;

import java.io.InputStream;

import org.nakedobjects.noa.NakedObjectRuntimeException;


public class FrameworkPropertiesLoader {

    public static InputStream getFrameworkPropertiesStream(final InstallerLookup installerLookup, final String componentFile) {
        final InputStream in = installerLookup.getClass().getResourceAsStream("/" + componentFile);
        if (in == null) {
            throw new NakedObjectRuntimeException("No resource found: " + componentFile);
        }
        return in;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy