
global.namespace.truelicense.api.auth.RepositoryContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of truelicense-api Show documentation
Show all versions of truelicense-api Show documentation
The TrueLicense API module provides an Application Programming
Interface for license management on the Java Virtual Machine.
/*
* 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