Hi Davide,

On Mon, Jan 18, 2016 at 5:46 PM,  <dav...@apache.org> wrote:
> +     */
> +    public AtomicCounterEditorProvider() {
> +        clusterSupplier = new Supplier<Clusterable>() {
> +            @Override
> +            public Clusterable get() {
> +                return cluster.get();
> +            }
> +        };
> +        schedulerSupplier = new Supplier<ScheduledExecutorService>() {
> +            @Override
> +            public ScheduledExecutorService get() {
> +                return scheduler.get();
> +            }
> +        };
> +        storeSupplier = new Supplier<NodeStore>() {
> +            @Override
> +            public NodeStore get() {
> +                return store.get();
> +            }
> +        };
> +        wbSupplier = new Supplier<Whiteboard>() {
> +            @Override
> +            public Whiteboard get() {
> +                return whiteboard.get();
> +            }
> +        };
> +    }

Just curious about use of above approach. Is it for keeping the
dependencies as non static or using final instance variable? If you
mark references as static then all those bind and unbind method would
not be required as by the time component is active the dependencies
would be set.


Chetan Mehrotra

Reply via email to