kz.greetgo.conf.hot.HotConfigDefinitionModel Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of greetgo.conf Show documentation
Show all versions of greetgo.conf Show documentation
Configuration library using in greetgo!
package kz.greetgo.conf.hot;
import java.util.Collections;
import java.util.List;
public class HotConfigDefinitionModel implements HotConfigDefinition {
private final List elementDefinitions;
private final String location, description;
private final Class configInterface;
public HotConfigDefinitionModel(String location,
Class configInterface,
String description,
List elementDefinitions) {
this.location = location;
this.configInterface = configInterface;
this.description = description;
this.elementDefinitions = Collections.unmodifiableList(elementDefinitions);
}
@Override
public String location() {
return location;
}
@Override
public String description() {
return description;
}
@Override
public List elementList() {
return elementDefinitions;
}
@Override
public Class configInterface() {
return configInterface;
}
}