Examples of LogAdapter


Examples of com.github.kongchen.swagger.docgen.LogAdapter

    private boolean withFormatSuffix = true;

    public RemoteDocumentSource(LogAdapter logAdapter, URI requestURI, String outputTpl, String outputPath, String swaggerOutput, String mustacheFileRoot, boolean useOutputFlatStructure, String overridingModels) {
        super(logAdapter, outputPath, outputTpl, swaggerOutput, mustacheFileRoot, useOutputFlatStructure, overridingModels);
        LOG = new LogAdapter(Logger.getLogger(RemoteDocumentSource.class));
        this.requestURI = requestURI;
        mapper.configure(DeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY, true);
        mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
        mapper.setSerializationInclusion(JsonInclude.Include.NON_DEFAULT);
        mapper.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false);
View Full Code Here

Examples of com.github.kongchen.swagger.docgen.LogAdapter

    private final ApiSource apiSource;

    private final SpecFilter specFilter = new SpecFilter();

    public MavenDocumentSource(ApiSource apiSource, Log log) {
        super(new LogAdapter(log),
              apiSource.getOutputPath(), apiSource.getOutputTemplate(), apiSource.getSwaggerDirectory(), apiSource.mustacheFileRoot, apiSource.isUseOutputFlatStructure(), apiSource.getOverridingModels());

        setApiVersion(apiSource.getApiVersion());
        setBasePath(apiSource.getBasePath());
        setApiInfo(apiSource.getApiInfo());
View Full Code Here

Examples of com.github.kongchen.swagger.docgen.LogAdapter

    }

    @Test(enabled = false)
    public void testLoadDocuments() throws Exception {
        RemoteDocumentSource remoteDocumentSource = new RemoteDocumentSource(
                new LogAdapter(Logger.getLogger("test")),
                URI.create("http://petstore.swagger.wordnik.com/api/api-docs"),
//                "/home/chekong/workspace/kongchen/swagger-maven-example/templates/strapdown.html.mustache",
                "/Users/kongchen/workspace/swagger-maven-example/templates/strapdown.html.mustache",
                "/tmp/output.html",
                "/tmp", null, false, null);
View Full Code Here

Examples of org.intellij.plugins.junitgen.util.LogAdapter

            velocityProperties.setProperty("string.resource.loader.repository.name", "JUnitGenerator");

            //create the velocity engine with an externalized resource template
            final VelocityEngine ve = new VelocityEngine(velocityProperties);
            //set our custom log adapter
            ve.setProperty("runtime.log.logsystem", new LogAdapter());
            //manage the repository and put our template in with a name
            StringResourceRepository repository = new StringResourceRepositoryImpl();
            repository.putStringResource(VIRTUAL_TEMPLATE_NAME, getTemplate(genCtx.getProject()));
            ve.setApplicationAttribute("JUnitGenerator", repository);
View Full Code Here

Examples of org.jboss.errai.bus.client.framework.LogAdapter

  protected void gwtSetUp() throws Exception {
    System.out.println("set-up");
    if (bus == null) {
      System.out.println("GET()");
      bus = (ClientMessageBusImpl) ErraiBus.get();
      bus.setLogAdapter(new LogAdapter() {
        public void warn(String message) {
          System.out.println("WARN: " + message);
        }

        public void info(String message) {
View Full Code Here

Examples of org.jboss.errai.bus.client.framework.LogAdapter

    System.out.println("set-up");
    if (bus == null) {
      System.out.println("GET()");
      bus = (ClientMessageBusImpl) ErraiBus.get();
      bus.setLogAdapter(new LogAdapter() {
        public void warn(String message) {
          System.out.println("WARN: " + message);
        }

        public void info(String message) {
View Full Code Here

Examples of org.jboss.errai.bus.client.framework.LogAdapter

    System.out.println("set-up");
    if (bus == null) {
      System.out.println("GET()");
      bus = (ClientMessageBusImpl) ErraiBus.get();
      bus.setLogAdapter(new LogAdapter() {
        public void warn(String message) {
          System.out.println("WARN: " + message);
        }

        public void info(String message) {
View Full Code Here

Examples of org.jboss.errai.bus.client.framework.LogAdapter

    protected void gwtSetUp() throws Exception {
        System.out.println("set-up");
        if (bus == null) {
            System.out.println("GET()");
            bus = (ClientMessageBusImpl) ErraiBus.get();
            bus.setLogAdapter(new LogAdapter() {
                public void warn(String message) {
                    System.out.println("WARN: " + message);
                }

                public void info(String message) {
View Full Code Here

Examples of org.jboss.errai.bus.client.framework.LogAdapter

  protected void gwtSetUp() throws Exception {
    System.out.println("set-up");
    if (bus == null) {
      System.out.println("GET()");
      bus = (ClientMessageBusImpl) ErraiBus.get();
      bus.setLogAdapter(new LogAdapter() {
        public void warn(String message) {
          System.out.println("WARN: " + message);
        }

        public void info(String message) {
View Full Code Here

Examples of org.jboss.errai.bus.client.framework.LogAdapter

    System.out.println("set-up");
    if (bus == null) {
      System.out.println("GET()");
      bus = (ClientMessageBusImpl) ErraiBus.get();
      bus.setLogAdapter(new LogAdapter() {
        public void warn(String message) {
          System.out.println("WARN: " + message);
        }

        public void info(String message) {
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.