Examples of makeReadOnly()


Examples of com.linkedin.data.DataMap.makeReadOnly()

        // Data object is read-only.
        for (Object[] pair : pairs)
        {
          DataMap foo = new DataMap();
          foo.put(key, pair[0]);
          foo.makeReadOnly();
          assertTrue(foo.isReadOnly());
          assertTrue(((DataComplex) pair[0]).isReadOnly());
          assertSame(foo.get(key), pair[0]);
          ValidationResult result = ValidateDataAgainstSchema.validate(foo, schema, validationOptions);
     System.out.println(result);
View Full Code Here

Examples of com.volantis.mcs.utilities.MarinerURL.makeReadOnly()

    RuntimeProjectMock createProject(final String baseUrl) {

        final RuntimeProjectMock projectMock =
                new RuntimeProjectMock("projectMock", expectations);
        MarinerURL baseURL = new MarinerURL(baseUrl);
        baseURL.makeReadOnly();
        projectMock.expects.getAssetsBaseURL().returns(baseURL).any();
        projectMock.expects.getContainsOrphans().returns(false).any();
        projectMock.expects.getPolicySource().returns(null).any();
        projectMock.expects.isPortable().returns(false).any();
View Full Code Here

Examples of com.volantis.mcs.utilities.MarinerURL.makeReadOnly()

        MarinerURL prefixURL;
        if (configuration == null) {
            prefixURL = null;
        } else {
            prefixURL = new MarinerURL(configuration.getPrefixUrl());
            prefixURL.makeReadOnly();
        }

        variantType2PrefixURL.put(variantType, prefixURL);
    }
View Full Code Here

Examples of com.volantis.mcs.utilities.MarinerURL.makeReadOnly()

                assetGroup,
                urlResult);

        // Make sure that the url cannot be modified (even if it is a
        // convertible image asset).
        urlResult.makeReadOnly();

        return urlResult;
    }

View Full Code Here

Examples of com.volantis.mcs.utilities.MarinerURL.makeReadOnly()

        MarinerURL prefixURL;
        if (configuration == null) {
            prefixURL = null;
        } else {
            prefixURL = new MarinerURL(configuration.getPrefixUrl());
            prefixURL.makeReadOnly();
        }

        variantType2PrefixURL.put(variantType, prefixURL);
    }
View Full Code Here

Examples of com.volantis.mcs.utilities.MarinerURL.makeReadOnly()

            // Set the base url which may not have been set.
            String value = externalConfig.getBaseUrl();
            if (value != null) {
                MarinerURL baseURL = new MarinerURL(value);
                baseURL.makeReadOnly();
                styleSheetConfiguration.setBaseURL(baseURL);
            }

            // Set the preferred location to be external.
            styleSheetConfiguration.setPreferredLocation(
View Full Code Here

Examples of org.apache.avalon.excalibur.logger.util.LoggerManagerTee.makeReadOnly()

        final LoggerManager decorated = applyDecorators( bare, prefix, switchTo );
        final LoggerManagerTee tee = new LoggerManagerTee( decorated );

        tee.addTee( new LogKitLoggerHelper( hierarchy ) );
        tee.addTee( new LogKitConfHelper( hierarchy ) );
        tee.makeReadOnly();

        return tee;
    }

    /**
 
View Full Code Here

Examples of org.apache.avalon.fortress.util.OverridableContext.makeReadOnly()

                }

            }
        }
        addContext( context );
        context.makeReadOnly();
        return context;
    }

    /**
     * This method may be overwritten by subclasses to put additional objects
View Full Code Here

Examples of org.apache.avalon.framework.component.DefaultComponentManager.makeReadOnly()

                throw new Exception( message );
            }
            componentManager.put( key, (Component)service );
        }

        componentManager.makeReadOnly();
        return componentManager;
    }

    /**
     * Create a new ServiceManager for component.
View Full Code Here

Examples of org.apache.avalon.framework.configuration.DefaultConfiguration.makeReadOnly()

    {
        final ValidationResult result = new ValidationResult();
        final DefaultConfiguration branched =
            new DefaultConfiguration( "root", configuration.getLocation() );
        branched.addAll( configuration );
        branched.makeReadOnly();

        try
        {
            final Verifier verifier = m_schema.newVerifier();
            final VerifierHandler handler = verifier.getVerifierHandler();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.