001package org.itsallcode.jdbc;
002
003/**
004 * This represents a context with configuration for the Simple JDBC framework.
005 */
006public final class Context {
007
008    private Context() {
009    }
010
011    /**
012     * Create a new builder for {@link Context} objects.
013     * 
014     * @return a new builder
015     */
016    public static ContextBuilder builder() {
017        return new ContextBuilder();
018    }
019
020    /**
021     * A builder for {@link Context} objects.
022     */
023    public static final class ContextBuilder {
024
025        private ContextBuilder() {
026        }
027
028        /**
029         * Build a new context.
030         * 
031         * @return a new context
032         */
033        @SuppressWarnings({ "java:S2325", "java:S2440" }) // Not-static by intention
034        public Context build() {
035            return new Context();
036        }
037    }
038}