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

global.namespace.truelicense.api.auth.RepositoryContext Maven / Gradle / Ivy

Go to download

The TrueLicense API module provides an Application Programming Interface for license management on the Java Virtual Machine.

There is a newer version: 4.0.3
Show newest version
/*
 * Copyright (C) 2005 - 2019 Schlichtherle IT Services.
 * All rights reserved. Use is subject to license terms.
 */
package global.namespace.truelicense.api.auth;

import global.namespace.truelicense.api.codec.Codec;

/**
 * A factory for repository models and their associated
 * {@linkplain RepositoryController repository controllers}.
 *
 * @param  the generic repository model.
 */
public interface RepositoryContext {

    /** Returns a new repository model. */
    Model model();

    /** Configures the repository context to use the given codec. */
    WithCodec with(Codec codec);

    interface WithCodec {

        /** Returns a repository controller for the given repository model using the configured codec. */
        RepositoryController controller(Model model);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy