All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mntviews.jreport.JRTemplateCommon Maven / Gradle / Ivy

There is a newer version: 1.2.2
Show newest version
package com.mntviews.jreport;


public class JRTemplateCommon {
    private final JRConnection jrConnection;
    private final String path;

    public static Builder custom() {
        return new Builder();
    }

    public JRConnection getJrConnection() {
        return jrConnection;
    }

    public String getPath() {
        return path;
    }

    private JRTemplateCommon(Builder builder) {
        this.jrConnection = builder.jrConnection;
        this.path = builder.path;
    }

    public static class Builder {
        private JRConnection jrConnection;
        private String path;

        Builder withConnection(JRConnection connection) {
            this.jrConnection = connection;
            return this;
        }

        Builder withPath(String path) {
            this.path = path;
            return this;
        }

        public JRTemplateCommon build() {
            return new JRTemplateCommon(this);
        }

    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy