Examples of disable()


Examples of com.fasterxml.jackson.core.JsonGenerator.disable()

    {
        JsonGenerator jsonGenerator = new SmileFactory().createGenerator(outputStream);

        // Important: we are NOT to close the underlying stream after
        // mapping, so we need to instruct generator:
        jsonGenerator.disable(JsonGenerator.Feature.AUTO_CLOSE_TARGET);

        // 04-Mar-2010, tatu: How about type we were given? (if any)
        JavaType rootType = null;
        if (genericType != null && value != null) {
            // 10-Jan-2011, tatu: as per [JACKSON-456], it's not safe to just force root
View Full Code Here

Examples of com.fasterxml.jackson.core.JsonParser.disable()

        try {
            JsonParser jsonParser = new SmileFactory().createParser(inputStream);

            // Important: we are NOT to close the underlying stream after
            // mapping, so we need to instruct parser:
            jsonParser.disable(JsonParser.Feature.AUTO_CLOSE_SOURCE);

            object = objectMapper.readValue(jsonParser, objectMapper.getTypeFactory().constructType(genericType));
        }
        catch (Exception e) {
            // we want to return a 400 for bad JSON but not for a real IO exception
View Full Code Here

Examples of com.fasterxml.jackson.databind.ObjectMapper.disable()

    public void testCanSerialize() throws IOException
    {
        ObjectMapper mapper = new ObjectMapper();
        mapper.enableDefaultTyping(ObjectMapper.DefaultTyping.NON_FINAL, JsonTypeInfo.As.WRAPPER_ARRAY);
        mapper.disable(SerializationFeature.FLUSH_AFTER_WRITE_VALUE);

        JacksonJsonProvider provider = new JacksonJsonProvider(mapper);

        // construct test object
        List<String> l = new ArrayList<String>();
View Full Code Here

Examples of com.fasterxml.jackson.dataformat.smile.SmileFactory.disable()

        // for our data, sharing names fine, shared values are 'meh', but enable
        sf.enable(SmileGenerator.Feature.CHECK_SHARED_NAMES);
        sf.enable(SmileGenerator.Feature.CHECK_SHARED_STRING_VALUES);

        // and although we don't necessarily embed binary data, if we do, better be raw
        sf.disable(SmileGenerator.Feature.ENCODE_BINARY_AS_7BIT);
        // as to header, trailer: header, absolutely must write and require for reads;
        // trailer: let's not; harmless but useless for our uses
        sf.enable(SmileGenerator.Feature.WRITE_HEADER);
        sf.disable(SmileGenerator.Feature.WRITE_END_MARKER);
        sf.enable(SmileParser.Feature.REQUIRE_HEADER);
View Full Code Here

Examples of com.franz.agbase.AllegroGraphConnection.disable()

   
    ts.closeTripleStore();

    // Disconnect from the server
    System.out.println("Disconnecting from the server.");
    ags.disable();
    System.out.println("Done.");
   
  }
 
 
View Full Code Here

Examples of com.google.gwt.query.client.plugins.deferred.Callbacks.disable()

    callbacks.add( fn2 );
    callbacks.fire( "bar" );
    assertEquals(" f1: bar", result);
   
    result = "";
    callbacks.disable();
    callbacks.fire( "bar" );
    assertEquals("", result);

    result = "";
    callbacks = new Callbacks("memory once unique");
View Full Code Here

Examples of com.redhat.ceylon.compiler.java.test.fordebug.Tracer.MethodEntry.disable()

            tracer.start();
            // stop when we enter main()
            MethodEntry entry = tracer.methodEntry().classFilter(mainClass).methodFilter("main").result(HandlerResult.SUSPEND).enable();
            // resume until we hit that, then disable it
            tracer.resume();
            entry.disable();
            // now log everything within DefaultedParameters.ceylon
            Step step = tracer.step().within(sourceName).log().enable();
            // and also listen out for when we exit main()
            MethodExit exit = tracer.methodExit().classFilter(mainClass).methodFilter("main").result(HandlerResult.SUSPEND).enable();
            // once we've exited main() disable the step breakpoint
View Full Code Here

Examples of com.redhat.ceylon.compiler.java.test.fordebug.Tracer.Step.disable()

            // and also listen out for when we exit main()
            MethodExit exit = tracer.methodExit().classFilter(mainClass).methodFilter("main").result(HandlerResult.SUSPEND).enable();
            // once we've exited main() disable the step breakpoint
            tracer.resume();
            if (tracer.isVmAlive()) {
                step.disable();
                tracer.resume();
            }
            System.err.println(tracer.getTrace());
            assertSameTrace(tracer, traceFile);
        }
View Full Code Here

Examples of com.saasovation.agilepm.domain.model.team.ProductOwner.disable()

                    this.productOwnerRepository.productOwnerOfIdentity(
                            tenantId,
                            aCommand.getUsername());

            if (productOwner != null) {
                productOwner.disable(aCommand.getOccurredOn());

                this.productOwnerRepository().save(productOwner);
            }

            ApplicationServiceLifeCycle.success();
View Full Code Here

Examples of com.saasovation.agilepm.domain.model.team.TeamMember.disable()

                    this.teamMemberRepository.teamMemberOfIdentity(
                            tenantId,
                            aCommand.getUsername());

            if (teamMember != null) {
                teamMember.disable(aCommand.getOccurredOn());

                this.teamMemberRepository().save(teamMember);
            }

            ApplicationServiceLifeCycle.success();
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.