Package org.modeshape.common.collection

Examples of org.modeshape.common.collection.UnmodifiableProperties


        try {
            stream = ModelExtensionDefinitionHelper.class.getClassLoader().getResourceAsStream(fileName);
            final Properties props = new Properties();
            props.load(stream);
            return new UnmodifiableProperties(props);
        } catch (final IOException e) {
            throw new IllegalStateException(TeiidI18n.errorReadingMedMetaclassMappings.text(fileName, e.getLocalizedMessage()), e);
        } finally {
            if (stream != null) {
                try {
View Full Code Here


        try {
            stream = JcrRepository.class.getClassLoader().getResourceAsStream("org/modeshape/jcr/repository.properties");
            assert stream != null;
            Properties props = new Properties();
            props.load(stream);
            return new UnmodifiableProperties(props);
        } catch (IOException e) {
            throw new IllegalStateException(JcrI18n.failedToReadPropertiesFromManifest.text(e.getLocalizedMessage()), e);
        } finally {
            if (stream != null) {
                try {
View Full Code Here

TOP

Related Classes of org.modeshape.common.collection.UnmodifiableProperties

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.