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

cloud.localstack.docker.annotation.IBindMountProvider Maven / Gradle / Ivy

There is a newer version: 0.2.23
Show newest version
package cloud.localstack.docker.annotation;

import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.function.Supplier;


public interface IBindMountProvider extends Supplier> {

    class EmptyBindMountProvider implements IBindMountProvider {

        @Override
        public Map get() {
            return Collections.emptyMap();
        }
    }

    abstract class BaseBindMountProvider implements IBindMountProvider {

        private Map mounts = new HashMap<>();

        protected BaseBindMountProvider() {
            initValues(mounts);
        }

        protected abstract void initValues(Map mounts);

        @Override
        public final Map get() {
            return mounts;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy