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

com.englishtown.vertx.zookeeper.builders.impl.DefaultZooKeeperOperationBuilders Maven / Gradle / Ivy

There is a newer version: 2.1.1
Show newest version
package com.englishtown.vertx.zookeeper.builders.impl;

import com.englishtown.vertx.zookeeper.builders.*;

import javax.inject.Inject;
import javax.inject.Provider;

/**
 */
public class DefaultZooKeeperOperationBuilders implements ZooKeeperOperationBuilders {

    private final Provider createBuilderProvider;
    private final Provider getDataBuilderProvider;
    private final Provider setDataBuilderProvider;
    private final Provider getACLBuilderProvider;
    private final Provider setACLBuilderProvider;
    private final Provider getChildrenBuilderProvider;
    private final Provider existsBuilderProvider;
    private final Provider deleteBuilderProvider;

    @Inject
    public DefaultZooKeeperOperationBuilders(
            Provider createBuilderProvider,
            Provider getDataBuilderProvider,
            Provider setDataBuilderProvider,
            Provider getACLBuilderProvider,
            Provider setACLBuilderProvider,
            Provider getChildrenBuilderProvider,
            Provider existsBuilderProvider, Provider deleteBuilderProvider) {
        this.createBuilderProvider = createBuilderProvider;
        this.getDataBuilderProvider = getDataBuilderProvider;
        this.setDataBuilderProvider = setDataBuilderProvider;
        this.getACLBuilderProvider = getACLBuilderProvider;
        this.setACLBuilderProvider = setACLBuilderProvider;
        this.getChildrenBuilderProvider = getChildrenBuilderProvider;
        this.existsBuilderProvider = existsBuilderProvider;
        this.deleteBuilderProvider = deleteBuilderProvider;
    }

    @Override
    public CreateBuilder create() {
        return createBuilderProvider.get();
    }

    @Override
    public GetDataBuilder getData() {
        return getDataBuilderProvider.get();
    }

    @Override
    public SetDataBuilder setData() {
        return setDataBuilderProvider.get();
    }

    @Override
    public GetACLBuilder getACL() {
        return getACLBuilderProvider.get();
    }

    @Override
    public SetACLBuilder setACL() {
        return setACLBuilderProvider.get();
    }

    @Override
    public GetChildrenBuilder getChildren() {
        return getChildrenBuilderProvider.get();
    }

    @Override
    public ExistsBuilder checkExists() {
        return existsBuilderProvider.get();
    }

    @Override
    public DeleteBuilder delete() {
        return deleteBuilderProvider.get();
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy