com.instaclustr.version.VersionModule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons Show documentation
Show all versions of commons Show documentation
Common classes and utilities integrated with various projects
package com.instaclustr.version;
import com.google.inject.AbstractModule;
public class VersionModule extends AbstractModule {
private final Version version;
public VersionModule(final String[] version) {
this(Version.parse(version));
}
public VersionModule(final Version version) {
this.version = version;
}
@Override
protected void configure() {
bind(Version.class).toInstance(this.version);
}
}