Added conditional config idea
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package me.cortex.voxy.common.storage.other;
|
||||
|
||||
import me.cortex.voxy.common.storage.StorageBackend;
|
||||
import me.cortex.voxy.common.storage.config.ConfigBuildCtx;
|
||||
import me.cortex.voxy.common.storage.config.Serialization;
|
||||
import me.cortex.voxy.common.storage.config.StorageConfig;
|
||||
import org.apache.commons.lang3.NotImplementedException;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
//A conditional storage backend depending on build time config, this enables conditional backends depending on the
|
||||
// dimension as an example
|
||||
public class ConditionalStorageBackendConfig extends StorageConfig {
|
||||
@Override
|
||||
public StorageBackend build(ConfigBuildCtx ctx) {
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public static String getConfigTypeName() {
|
||||
return "ConditionalConfig";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user