Examples of enable()


Examples of org.apache.tapestry5.plastic.PlasticManager.PlasticManagerBuilder.enable()

        PlasticManagerBuilder builder = PlasticManager.withClassLoader(parent).delegate(this)
                .packages(controlledPackageNames);

        if (!productionMode)
        {
            builder.enable(TransformationOption.FIELD_WRITEBEHIND);
        }

        manager = builder.create();

        manager.addPlasticClassListener(this);
View Full Code Here

Examples of org.codehaus.jackson.JsonGenerator.enable()

    }

    public void write(Map map, OutputStream os) throws IOException {
        ObjectMapper mapper = new ObjectMapper();
        JsonGenerator gen = jsonFactory.createJsonGenerator(os);
        gen.enable(JsonGenerator.Feature.ESCAPE_NON_ASCII);
        mapper.writeValue(gen, map);
        gen.close();
    }

    public void write(List list, OutputStream os) throws IOException {
View Full Code Here

Examples of org.codehaus.jackson.map.ObjectMapper.enable()

    mapper.registerModule(module);

    SerializationConfig config = mapper.getSerializationConfig();

    // Pretty
    mapper.enable(SerializationConfig.Feature.INDENT_OUTPUT);

    // Manually serialize everything, either through mixin or serializer
    mapper.disable(SerializationConfig.Feature.AUTO_DETECT_GETTERS);
    mapper.disable(SerializationConfig.Feature.AUTO_DETECT_IS_GETTERS);
    mapper.disable(SerializationConfig.Feature.AUTO_DETECT_FIELDS);
View Full Code Here

Examples of org.codehaus.jackson.mrbean.AbstractTypeMaterializer.enable()

    public void testLowLevelMaterializerFailOnUnrecognized() throws Exception
    {
        AbstractTypeMaterializer mat = new AbstractTypeMaterializer();
        //  by default early failure is disabled, enable:
        mat.enable(AbstractTypeMaterializer.Feature.FAIL_ON_UNMATERIALIZED_METHOD);
        DeserializationConfig config = new ObjectMapper().getDeserializationConfig();
        try {
            mat.materializeClass(config, PartialBean.class);
            fail("Expected exception for unrecognized method");
        } catch (IllegalArgumentException e) {
View Full Code Here

Examples of org.codehaus.jackson.smile.SmileGenerator.enable()

      merge(parser, extensionRegistry, builder);
    }
   
    protected JsonGenerator createGenerator(OutputStream output) throws IOException {
      SmileGenerator generator = smileFactory.createJsonGenerator(output);
      generator.enable(SmileGenerator.Feature.WRITE_HEADER);
      generator.enable(SmileGenerator.Feature.WRITE_END_MARKER);
      generator.disable(JsonGenerator.Feature.AUTO_CLOSE_TARGET);
      return generator;
    }
}
View Full Code Here

Examples of org.eclipse.dltk.core.search.indexing.IndexManager.enable()

  }
 
  @SuppressWarnings("restriction")
  protected static void enableDLTKIndexer(boolean waitUntilReady) {
    IndexManager indexManager = org.eclipse.dltk.internal.core.ModelManager.getModelManager().getIndexManager();
    indexManager.enable();
    if(waitUntilReady) {
      indexManager.waitUntilReady();
    }
  }
 
View Full Code Here

Examples of org.ff4j.FF4j.enable()

    @Test
    public void testEnableFeature() {
        FF4j ff4j = new FF4j();
        ff4j.autoCreate(true);
        ff4j.enable("newffff");
        Assert.assertTrue(ff4j.exist("newffff"));
        Assert.assertTrue(ff4j.check("newffff"));
    }

    @Test(expected = FeatureNotFoundException.class)
View Full Code Here

Examples of org.ff4j.core.Feature.enable()

   
    /** {@inheritDoc} */
    @Override
    public void enable(String uid) {
        Feature f = read(uid);
        f.enable();
        update(f);
    }

    /** {@inheritDoc} */
    @Override
View Full Code Here

Examples of org.geoserver.config.ReadOnlyGeoServerLoader.enable()

            protected void onSubmit(AjaxRequestTarget target,
                    org.apache.wicket.markup.html.form.Form<?> form) {
                ReadOnlyGeoServerLoader loader = getReadOnlyGeoServerLoader();
                if (loader.isEnabled()) {
                    readOnlyInfo.getModel().setObject("disabled");
                    loader.enable(false);
                } else {
                    readOnlyInfo.getModel().setObject("enabled");
                    loader.enable(true);
                }
                target.addComponent(this.getParent());
View Full Code Here

Examples of org.infinispan.configuration.cache.RecoveryConfigurationBuilder.enable()

         String value = replaceProperties(reader.getAttributeValue(i));
         Attribute attribute = Attribute.forName(reader.getAttributeLocalName(i));
         switch (attribute) {
            case ENABLED:
               if (Boolean.parseBoolean(value)) {
                  recovery.enable();
               } else {
                  recovery.disable();
               }
               break;
            case RECOVERY_INFO_CACHE_NAME:
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.