[Rename] o.e.common.inject subpackages (#331)
* [Rename] o.e.common.inject subpackages This commit refactors the remaining o.e.common.inject subpackages to the o.opensearch.common.inject namespace. All references throughout the codebase have been refactored. Signed-off-by: Nicholas Knize <nknize@amazon.com>
This commit is contained in:
parent
79305763f4
commit
606c8c15ab
|
@ -249,7 +249,7 @@ import org.opensearch.cluster.node.DiscoveryNodes;
|
|||
import org.opensearch.common.NamedRegistry;
|
||||
import org.opensearch.common.inject.AbstractModule;
|
||||
import org.opensearch.common.inject.TypeLiteral;
|
||||
import org.elasticsearch.common.inject.multibindings.MapBinder;
|
||||
import org.opensearch.common.inject.multibindings.MapBinder;
|
||||
import org.elasticsearch.common.settings.ClusterSettings;
|
||||
import org.elasticsearch.common.settings.IndexScopedSettings;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
package org.opensearch.bootstrap;
|
||||
|
||||
import org.opensearch.common.inject.CreationException;
|
||||
import org.elasticsearch.common.inject.spi.Message;
|
||||
import org.opensearch.common.inject.spi.Message;
|
||||
|
||||
import java.io.PrintStream;
|
||||
import java.io.PrintWriter;
|
||||
|
|
|
@ -16,13 +16,13 @@
|
|||
|
||||
package org.opensearch.common.inject;
|
||||
|
||||
import org.elasticsearch.common.inject.binder.AnnotatedBindingBuilder;
|
||||
import org.elasticsearch.common.inject.binder.AnnotatedConstantBindingBuilder;
|
||||
import org.elasticsearch.common.inject.binder.LinkedBindingBuilder;
|
||||
import org.elasticsearch.common.inject.matcher.Matcher;
|
||||
import org.elasticsearch.common.inject.spi.Message;
|
||||
import org.elasticsearch.common.inject.spi.TypeConverter;
|
||||
import org.elasticsearch.common.inject.spi.TypeListener;
|
||||
import org.opensearch.common.inject.binder.AnnotatedBindingBuilder;
|
||||
import org.opensearch.common.inject.binder.AnnotatedConstantBindingBuilder;
|
||||
import org.opensearch.common.inject.binder.LinkedBindingBuilder;
|
||||
import org.opensearch.common.inject.matcher.Matcher;
|
||||
import org.opensearch.common.inject.spi.Message;
|
||||
import org.opensearch.common.inject.spi.TypeConverter;
|
||||
import org.opensearch.common.inject.spi.TypeListener;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.util.Objects;
|
||||
|
@ -228,8 +228,8 @@ public abstract class AbstractModule implements Module {
|
|||
}
|
||||
|
||||
/**
|
||||
* @see Binder#bindListener(org.elasticsearch.common.inject.matcher.Matcher,
|
||||
* org.elasticsearch.common.inject.spi.TypeListener)
|
||||
* @see Binder#bindListener(org.opensearch.common.inject.matcher.Matcher,
|
||||
* org.opensearch.common.inject.spi.TypeListener)
|
||||
* @since 2.0
|
||||
*/
|
||||
protected void bindListener(Matcher<? super TypeLiteral<?>> typeMatcher,
|
||||
|
|
|
@ -17,17 +17,17 @@
|
|||
package org.opensearch.common.inject;
|
||||
|
||||
import org.opensearch.common.inject.internal.Errors;
|
||||
import org.elasticsearch.common.inject.spi.Element;
|
||||
import org.elasticsearch.common.inject.spi.ElementVisitor;
|
||||
import org.elasticsearch.common.inject.spi.InjectionRequest;
|
||||
import org.elasticsearch.common.inject.spi.MembersInjectorLookup;
|
||||
import org.elasticsearch.common.inject.spi.Message;
|
||||
import org.elasticsearch.common.inject.spi.PrivateElements;
|
||||
import org.elasticsearch.common.inject.spi.ProviderLookup;
|
||||
import org.elasticsearch.common.inject.spi.ScopeBinding;
|
||||
import org.elasticsearch.common.inject.spi.StaticInjectionRequest;
|
||||
import org.elasticsearch.common.inject.spi.TypeConverterBinding;
|
||||
import org.elasticsearch.common.inject.spi.TypeListenerBinding;
|
||||
import org.opensearch.common.inject.spi.Element;
|
||||
import org.opensearch.common.inject.spi.ElementVisitor;
|
||||
import org.opensearch.common.inject.spi.InjectionRequest;
|
||||
import org.opensearch.common.inject.spi.MembersInjectorLookup;
|
||||
import org.opensearch.common.inject.spi.Message;
|
||||
import org.opensearch.common.inject.spi.PrivateElements;
|
||||
import org.opensearch.common.inject.spi.ProviderLookup;
|
||||
import org.opensearch.common.inject.spi.ScopeBinding;
|
||||
import org.opensearch.common.inject.spi.StaticInjectionRequest;
|
||||
import org.opensearch.common.inject.spi.TypeConverterBinding;
|
||||
import org.opensearch.common.inject.spi.TypeListenerBinding;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
|
|
|
@ -16,13 +16,13 @@
|
|||
|
||||
package org.opensearch.common.inject;
|
||||
|
||||
import org.elasticsearch.common.inject.binder.AnnotatedBindingBuilder;
|
||||
import org.elasticsearch.common.inject.binder.AnnotatedConstantBindingBuilder;
|
||||
import org.elasticsearch.common.inject.binder.LinkedBindingBuilder;
|
||||
import org.elasticsearch.common.inject.matcher.Matcher;
|
||||
import org.elasticsearch.common.inject.spi.Message;
|
||||
import org.elasticsearch.common.inject.spi.TypeConverter;
|
||||
import org.elasticsearch.common.inject.spi.TypeListener;
|
||||
import org.opensearch.common.inject.binder.AnnotatedBindingBuilder;
|
||||
import org.opensearch.common.inject.binder.AnnotatedConstantBindingBuilder;
|
||||
import org.opensearch.common.inject.binder.LinkedBindingBuilder;
|
||||
import org.opensearch.common.inject.matcher.Matcher;
|
||||
import org.opensearch.common.inject.spi.Message;
|
||||
import org.opensearch.common.inject.spi.TypeConverter;
|
||||
import org.opensearch.common.inject.spi.TypeListener;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
|
||||
|
@ -162,7 +162,7 @@ import java.lang.annotation.Annotation;
|
|||
* .to(BlueService.class);</pre>
|
||||
*
|
||||
* Differentiating by names is a common enough use case that we provided a
|
||||
* standard annotation, {@link org.elasticsearch.common.inject.name.Named @Named}. Because of
|
||||
* standard annotation, {@link org.opensearch.common.inject.name.Named @Named}. Because of
|
||||
* Guice's library support, binding by name is quite easier than in the
|
||||
* arbitrary binding annotation case we just saw. However, remember that these
|
||||
* names will live in a single flat namespace with all the other names used in
|
||||
|
|
|
@ -16,9 +16,9 @@
|
|||
|
||||
package org.opensearch.common.inject;
|
||||
|
||||
import org.elasticsearch.common.inject.spi.BindingScopingVisitor;
|
||||
import org.elasticsearch.common.inject.spi.BindingTargetVisitor;
|
||||
import org.elasticsearch.common.inject.spi.Element;
|
||||
import org.opensearch.common.inject.spi.BindingScopingVisitor;
|
||||
import org.opensearch.common.inject.spi.BindingTargetVisitor;
|
||||
import org.opensearch.common.inject.spi.Element;
|
||||
|
||||
/**
|
||||
* A mapping from a key (type and optional annotation) to the strategy for getting instances of the
|
||||
|
@ -68,7 +68,7 @@ public interface Binding<T> extends Element {
|
|||
* binding.
|
||||
*
|
||||
* @throws UnsupportedOperationException when invoked on a {@link Binding}
|
||||
* created via {@link org.elasticsearch.common.inject.spi.Elements#getElements}. This
|
||||
* created via {@link org.opensearch.common.inject.spi.Elements#getElements}. This
|
||||
* method is only supported on {@link Binding}s returned from an injector.
|
||||
*/
|
||||
Provider<T> getProvider();
|
||||
|
|
|
@ -29,18 +29,18 @@ import org.opensearch.common.inject.internal.ProviderInstanceBindingImpl;
|
|||
import org.opensearch.common.inject.internal.ProviderMethod;
|
||||
import org.opensearch.common.inject.internal.Scoping;
|
||||
import org.opensearch.common.inject.internal.UntargettedBindingImpl;
|
||||
import org.elasticsearch.common.inject.spi.BindingTargetVisitor;
|
||||
import org.elasticsearch.common.inject.spi.ConstructorBinding;
|
||||
import org.elasticsearch.common.inject.spi.ConvertedConstantBinding;
|
||||
import org.elasticsearch.common.inject.spi.ExposedBinding;
|
||||
import org.elasticsearch.common.inject.spi.InjectionPoint;
|
||||
import org.elasticsearch.common.inject.spi.InstanceBinding;
|
||||
import org.elasticsearch.common.inject.spi.LinkedKeyBinding;
|
||||
import org.elasticsearch.common.inject.spi.PrivateElements;
|
||||
import org.elasticsearch.common.inject.spi.ProviderBinding;
|
||||
import org.elasticsearch.common.inject.spi.ProviderInstanceBinding;
|
||||
import org.elasticsearch.common.inject.spi.ProviderKeyBinding;
|
||||
import org.elasticsearch.common.inject.spi.UntargettedBinding;
|
||||
import org.opensearch.common.inject.spi.BindingTargetVisitor;
|
||||
import org.opensearch.common.inject.spi.ConstructorBinding;
|
||||
import org.opensearch.common.inject.spi.ConvertedConstantBinding;
|
||||
import org.opensearch.common.inject.spi.ExposedBinding;
|
||||
import org.opensearch.common.inject.spi.InjectionPoint;
|
||||
import org.opensearch.common.inject.spi.InstanceBinding;
|
||||
import org.opensearch.common.inject.spi.LinkedKeyBinding;
|
||||
import org.opensearch.common.inject.spi.PrivateElements;
|
||||
import org.opensearch.common.inject.spi.ProviderBinding;
|
||||
import org.opensearch.common.inject.spi.ProviderInstanceBinding;
|
||||
import org.opensearch.common.inject.spi.ProviderKeyBinding;
|
||||
import org.opensearch.common.inject.spi.UntargettedBinding;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
|
|
@ -21,7 +21,7 @@ import org.opensearch.common.inject.internal.Errors;
|
|||
import org.opensearch.common.inject.internal.ErrorsException;
|
||||
import org.opensearch.common.inject.internal.InternalContext;
|
||||
import org.opensearch.common.inject.internal.InternalFactory;
|
||||
import org.elasticsearch.common.inject.spi.Dependency;
|
||||
import org.opensearch.common.inject.spi.Dependency;
|
||||
|
||||
/**
|
||||
* Delegates to a custom factory which is also bound in the injector.
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
package org.opensearch.common.inject;
|
||||
|
||||
import org.opensearch.common.inject.internal.Errors;
|
||||
import org.elasticsearch.common.inject.spi.Message;
|
||||
import org.opensearch.common.inject.spi.Message;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Locale;
|
||||
|
|
|
@ -21,7 +21,7 @@ import org.opensearch.common.inject.internal.ErrorsException;
|
|||
import org.opensearch.common.inject.internal.InternalContext;
|
||||
import org.opensearch.common.inject.internal.InternalFactory;
|
||||
import org.opensearch.common.inject.internal.ToStringBuilder;
|
||||
import org.elasticsearch.common.inject.spi.Dependency;
|
||||
import org.opensearch.common.inject.spi.Dependency;
|
||||
|
||||
/**
|
||||
* @author crazybob@google.com (Bob Lee)
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
package org.opensearch.common.inject;
|
||||
|
||||
import org.elasticsearch.common.inject.spi.InjectionPoint;
|
||||
import org.opensearch.common.inject.spi.InjectionPoint;
|
||||
|
||||
import java.lang.reflect.Constructor;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
|
|
|
@ -23,10 +23,10 @@ import org.opensearch.common.inject.internal.InternalContext;
|
|||
import org.opensearch.common.inject.internal.InternalFactory;
|
||||
import org.opensearch.common.inject.internal.Scoping;
|
||||
import org.opensearch.common.inject.internal.ToStringBuilder;
|
||||
import org.elasticsearch.common.inject.spi.BindingTargetVisitor;
|
||||
import org.elasticsearch.common.inject.spi.ConstructorBinding;
|
||||
import org.elasticsearch.common.inject.spi.Dependency;
|
||||
import org.elasticsearch.common.inject.spi.InjectionPoint;
|
||||
import org.opensearch.common.inject.spi.BindingTargetVisitor;
|
||||
import org.opensearch.common.inject.spi.ConstructorBinding;
|
||||
import org.opensearch.common.inject.spi.Dependency;
|
||||
import org.opensearch.common.inject.spi.InjectionPoint;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
|
|
@ -20,7 +20,7 @@ import org.opensearch.common.inject.internal.ConstructionContext;
|
|||
import org.opensearch.common.inject.internal.Errors;
|
||||
import org.opensearch.common.inject.internal.ErrorsException;
|
||||
import org.opensearch.common.inject.internal.InternalContext;
|
||||
import org.elasticsearch.common.inject.spi.InjectionPoint;
|
||||
import org.opensearch.common.inject.spi.InjectionPoint;
|
||||
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.util.Set;
|
||||
|
|
|
@ -19,7 +19,7 @@ package org.opensearch.common.inject;
|
|||
import org.opensearch.common.inject.internal.Errors;
|
||||
import org.opensearch.common.inject.internal.ErrorsException;
|
||||
import org.opensearch.common.inject.internal.FailableCache;
|
||||
import org.elasticsearch.common.inject.spi.InjectionPoint;
|
||||
import org.opensearch.common.inject.spi.InjectionPoint;
|
||||
|
||||
/**
|
||||
* Constructor injectors by type.
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
package org.opensearch.common.inject;
|
||||
|
||||
import org.opensearch.common.inject.internal.Errors;
|
||||
import org.elasticsearch.common.inject.spi.Message;
|
||||
import org.opensearch.common.inject.spi.Message;
|
||||
|
||||
import java.util.Collection;
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
package org.opensearch.common.inject;
|
||||
|
||||
import org.elasticsearch.common.inject.spi.InjectionPoint;
|
||||
import org.opensearch.common.inject.spi.InjectionPoint;
|
||||
|
||||
import java.lang.reflect.Constructor;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
|
|
|
@ -17,9 +17,9 @@
|
|||
package org.opensearch.common.inject;
|
||||
|
||||
import org.opensearch.common.inject.internal.Errors;
|
||||
import org.elasticsearch.common.inject.spi.Element;
|
||||
import org.elasticsearch.common.inject.spi.MembersInjectorLookup;
|
||||
import org.elasticsearch.common.inject.spi.ProviderLookup;
|
||||
import org.opensearch.common.inject.spi.Element;
|
||||
import org.opensearch.common.inject.spi.MembersInjectorLookup;
|
||||
import org.opensearch.common.inject.spi.ProviderLookup;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
|
|
@ -17,9 +17,9 @@
|
|||
package org.opensearch.common.inject;
|
||||
|
||||
import org.opensearch.common.inject.internal.Errors;
|
||||
import org.elasticsearch.common.inject.spi.InjectionListener;
|
||||
import org.elasticsearch.common.inject.spi.Message;
|
||||
import org.elasticsearch.common.inject.spi.TypeEncounter;
|
||||
import org.opensearch.common.inject.spi.InjectionListener;
|
||||
import org.opensearch.common.inject.spi.Message;
|
||||
import org.opensearch.common.inject.spi.TypeEncounter;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
|
|
|
@ -21,8 +21,8 @@ import org.opensearch.common.inject.internal.Errors;
|
|||
import org.opensearch.common.inject.internal.ErrorsException;
|
||||
import org.opensearch.common.inject.internal.InternalContext;
|
||||
import org.opensearch.common.inject.internal.InternalFactory;
|
||||
import org.elasticsearch.common.inject.spi.Dependency;
|
||||
import org.elasticsearch.common.inject.spi.PrivateElements;
|
||||
import org.opensearch.common.inject.spi.Dependency;
|
||||
import org.opensearch.common.inject.spi.PrivateElements;
|
||||
|
||||
/**
|
||||
* This factory exists in a parent injector. When invoked, it retrieves its value from a child
|
||||
|
|
|
@ -22,7 +22,7 @@ import org.opensearch.common.inject.internal.ErrorsException;
|
|||
import org.opensearch.common.inject.internal.InternalContext;
|
||||
import org.opensearch.common.inject.internal.InternalFactory;
|
||||
import org.opensearch.common.inject.internal.ToStringBuilder;
|
||||
import org.elasticsearch.common.inject.spi.Dependency;
|
||||
import org.opensearch.common.inject.spi.Dependency;
|
||||
|
||||
/**
|
||||
* A placeholder which enables us to swap in the real factory once the injector is created.
|
||||
|
|
|
@ -22,7 +22,7 @@ import org.opensearch.common.inject.internal.InstanceBindingImpl;
|
|||
import org.opensearch.common.inject.internal.InternalFactory;
|
||||
import org.opensearch.common.inject.internal.MatcherAndConverter;
|
||||
import org.opensearch.common.inject.internal.SourceProvider;
|
||||
import org.elasticsearch.common.inject.spi.TypeListenerBinding;
|
||||
import org.opensearch.common.inject.spi.TypeListenerBinding;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.util.ArrayList;
|
||||
|
|
|
@ -18,7 +18,7 @@ package org.opensearch.common.inject;
|
|||
|
||||
import org.opensearch.common.inject.internal.Errors;
|
||||
import org.opensearch.common.inject.internal.ErrorsException;
|
||||
import org.elasticsearch.common.inject.spi.InjectionPoint;
|
||||
import org.opensearch.common.inject.spi.InjectionPoint;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.IdentityHashMap;
|
||||
|
|
|
@ -35,8 +35,8 @@ import static java.lang.annotation.RetentionPolicy.RUNTIME;
|
|||
* constructor taking no parameters. The Injector then proceeds to perform
|
||||
* method and field injections.
|
||||
* <li>Pre-constructed instances passed to {@link Injector#injectMembers},
|
||||
* {@link org.elasticsearch.common.inject.binder.LinkedBindingBuilder#toInstance(Object)} and
|
||||
* {@link org.elasticsearch.common.inject.binder.LinkedBindingBuilder#toProvider(Provider)}.
|
||||
* {@link org.opensearch.common.inject.binder.LinkedBindingBuilder#toInstance(Object)} and
|
||||
* {@link org.opensearch.common.inject.binder.LinkedBindingBuilder#toProvider(Provider)}.
|
||||
* In this case all constructors are, of course, ignored.
|
||||
* <li>Static fields and methods of classes which any {@link Module} has
|
||||
* specifically requested static injection for, using
|
||||
|
|
|
@ -19,9 +19,9 @@ package org.opensearch.common.inject;
|
|||
import org.opensearch.common.inject.internal.Errors;
|
||||
import org.opensearch.common.inject.internal.ErrorsException;
|
||||
import org.opensearch.common.inject.internal.InternalContext;
|
||||
import org.elasticsearch.common.inject.spi.InjectionPoint;
|
||||
import org.elasticsearch.common.inject.spi.InjectionRequest;
|
||||
import org.elasticsearch.common.inject.spi.StaticInjectionRequest;
|
||||
import org.opensearch.common.inject.spi.InjectionPoint;
|
||||
import org.opensearch.common.inject.spi.InjectionRequest;
|
||||
import org.opensearch.common.inject.spi.StaticInjectionRequest;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
|
|
@ -21,7 +21,7 @@ import org.opensearch.common.inject.internal.Errors;
|
|||
import org.opensearch.common.inject.internal.ErrorsException;
|
||||
import org.opensearch.common.inject.internal.InternalContext;
|
||||
import org.opensearch.common.inject.internal.Stopwatch;
|
||||
import org.elasticsearch.common.inject.spi.Dependency;
|
||||
import org.opensearch.common.inject.spi.Dependency;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
|
|
@ -30,12 +30,12 @@ import org.opensearch.common.inject.internal.MatcherAndConverter;
|
|||
import org.opensearch.common.inject.internal.Scoping;
|
||||
import org.opensearch.common.inject.internal.SourceProvider;
|
||||
import org.opensearch.common.inject.internal.ToStringBuilder;
|
||||
import org.elasticsearch.common.inject.spi.BindingTargetVisitor;
|
||||
import org.elasticsearch.common.inject.spi.ConvertedConstantBinding;
|
||||
import org.elasticsearch.common.inject.spi.Dependency;
|
||||
import org.elasticsearch.common.inject.spi.ProviderBinding;
|
||||
import org.elasticsearch.common.inject.spi.ProviderKeyBinding;
|
||||
import org.elasticsearch.common.inject.util.Providers;
|
||||
import org.opensearch.common.inject.spi.BindingTargetVisitor;
|
||||
import org.opensearch.common.inject.spi.ConvertedConstantBinding;
|
||||
import org.opensearch.common.inject.spi.Dependency;
|
||||
import org.opensearch.common.inject.spi.ProviderBinding;
|
||||
import org.opensearch.common.inject.spi.ProviderKeyBinding;
|
||||
import org.opensearch.common.inject.util.Providers;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.lang.reflect.GenericArrayType;
|
||||
|
|
|
@ -25,12 +25,12 @@ import org.opensearch.common.inject.internal.ProviderInstanceBindingImpl;
|
|||
import org.opensearch.common.inject.internal.Scoping;
|
||||
import org.opensearch.common.inject.internal.SourceProvider;
|
||||
import org.opensearch.common.inject.internal.Stopwatch;
|
||||
import org.elasticsearch.common.inject.spi.Dependency;
|
||||
import org.elasticsearch.common.inject.spi.Element;
|
||||
import org.elasticsearch.common.inject.spi.Elements;
|
||||
import org.elasticsearch.common.inject.spi.InjectionPoint;
|
||||
import org.elasticsearch.common.inject.spi.PrivateElements;
|
||||
import org.elasticsearch.common.inject.spi.TypeListenerBinding;
|
||||
import org.opensearch.common.inject.spi.Dependency;
|
||||
import org.opensearch.common.inject.spi.Element;
|
||||
import org.opensearch.common.inject.spi.Elements;
|
||||
import org.opensearch.common.inject.spi.InjectionPoint;
|
||||
import org.opensearch.common.inject.spi.PrivateElements;
|
||||
import org.opensearch.common.inject.spi.TypeListenerBinding;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
|
|
@ -21,7 +21,7 @@ import org.opensearch.common.inject.internal.ErrorsException;
|
|||
import org.opensearch.common.inject.internal.InternalContext;
|
||||
import org.opensearch.common.inject.internal.InternalFactory;
|
||||
import org.opensearch.common.inject.internal.SourceProvider;
|
||||
import org.elasticsearch.common.inject.spi.Dependency;
|
||||
import org.opensearch.common.inject.spi.Dependency;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
|
|
|
@ -18,8 +18,8 @@ package org.opensearch.common.inject;
|
|||
|
||||
import org.opensearch.common.inject.internal.Errors;
|
||||
import org.opensearch.common.inject.internal.ErrorsException;
|
||||
import org.elasticsearch.common.inject.spi.MembersInjectorLookup;
|
||||
import org.elasticsearch.common.inject.spi.ProviderLookup;
|
||||
import org.opensearch.common.inject.spi.MembersInjectorLookup;
|
||||
import org.opensearch.common.inject.spi.ProviderLookup;
|
||||
|
||||
/**
|
||||
* Handles {@link Binder#getProvider} and {@link Binder#getMembersInjector(TypeLiteral)} commands.
|
||||
|
|
|
@ -19,8 +19,8 @@ package org.opensearch.common.inject;
|
|||
import org.opensearch.common.inject.internal.Errors;
|
||||
import org.opensearch.common.inject.internal.ErrorsException;
|
||||
import org.opensearch.common.inject.internal.InternalContext;
|
||||
import org.elasticsearch.common.inject.spi.InjectionListener;
|
||||
import org.elasticsearch.common.inject.spi.InjectionPoint;
|
||||
import org.opensearch.common.inject.spi.InjectionListener;
|
||||
import org.opensearch.common.inject.spi.InjectionPoint;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
|
|
|
@ -19,8 +19,8 @@ package org.opensearch.common.inject;
|
|||
import org.opensearch.common.inject.internal.Errors;
|
||||
import org.opensearch.common.inject.internal.ErrorsException;
|
||||
import org.opensearch.common.inject.internal.FailableCache;
|
||||
import org.elasticsearch.common.inject.spi.InjectionPoint;
|
||||
import org.elasticsearch.common.inject.spi.TypeListenerBinding;
|
||||
import org.opensearch.common.inject.spi.InjectionPoint;
|
||||
import org.opensearch.common.inject.spi.TypeListenerBinding;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
import java.util.ArrayList;
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
package org.opensearch.common.inject;
|
||||
|
||||
import org.opensearch.common.inject.internal.Errors;
|
||||
import org.elasticsearch.common.inject.spi.Message;
|
||||
import org.opensearch.common.inject.spi.Message;
|
||||
|
||||
/**
|
||||
* Handles {@link Binder#addError} commands.
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
package org.opensearch.common.inject;
|
||||
|
||||
import org.elasticsearch.common.inject.binder.AnnotatedElementBuilder;
|
||||
import org.opensearch.common.inject.binder.AnnotatedElementBuilder;
|
||||
|
||||
/**
|
||||
* Returns a binder whose configuration information is hidden from its environment by default. See
|
||||
|
@ -34,7 +34,7 @@ public interface PrivateBinder extends Binder {
|
|||
|
||||
/**
|
||||
* Makes a binding for {@code type} available to the enclosing environment. Use {@link
|
||||
* org.elasticsearch.common.inject.binder.AnnotatedElementBuilder#annotatedWith(Class) annotatedWith()} to expose {@code type} with a
|
||||
* org.opensearch.common.inject.binder.AnnotatedElementBuilder#annotatedWith(Class) annotatedWith()} to expose {@code type} with a
|
||||
* binding annotation.
|
||||
*/
|
||||
AnnotatedElementBuilder expose(Class<?> type);
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
package org.opensearch.common.inject;
|
||||
|
||||
import org.opensearch.common.inject.internal.Errors;
|
||||
import org.elasticsearch.common.inject.spi.PrivateElements;
|
||||
import org.opensearch.common.inject.spi.PrivateElements;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
|
|
@ -16,10 +16,10 @@
|
|||
|
||||
package org.opensearch.common.inject;
|
||||
|
||||
import org.elasticsearch.common.inject.binder.AnnotatedBindingBuilder;
|
||||
import org.elasticsearch.common.inject.binder.AnnotatedElementBuilder;
|
||||
import org.elasticsearch.common.inject.binder.LinkedBindingBuilder;
|
||||
import org.elasticsearch.common.inject.spi.Message;
|
||||
import org.opensearch.common.inject.binder.AnnotatedBindingBuilder;
|
||||
import org.opensearch.common.inject.binder.AnnotatedElementBuilder;
|
||||
import org.opensearch.common.inject.binder.LinkedBindingBuilder;
|
||||
import org.opensearch.common.inject.spi.Message;
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -20,7 +20,7 @@ import org.opensearch.common.inject.internal.Errors;
|
|||
import org.opensearch.common.inject.internal.ErrorsException;
|
||||
import org.opensearch.common.inject.internal.InternalContext;
|
||||
import org.opensearch.common.inject.internal.InternalFactory;
|
||||
import org.elasticsearch.common.inject.spi.Dependency;
|
||||
import org.opensearch.common.inject.spi.Dependency;
|
||||
|
||||
/**
|
||||
* @author crazybob@google.com (Bob Lee)
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
package org.opensearch.common.inject;
|
||||
|
||||
import org.opensearch.common.inject.internal.Errors;
|
||||
import org.elasticsearch.common.inject.spi.Message;
|
||||
import org.opensearch.common.inject.spi.Message;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
|
|
|
@ -18,7 +18,7 @@ package org.opensearch.common.inject;
|
|||
|
||||
import org.opensearch.common.inject.internal.Annotations;
|
||||
import org.opensearch.common.inject.internal.Errors;
|
||||
import org.elasticsearch.common.inject.spi.ScopeBinding;
|
||||
import org.opensearch.common.inject.spi.ScopeBinding;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.util.Objects;
|
||||
|
|
|
@ -20,8 +20,8 @@ import org.opensearch.common.inject.internal.Errors;
|
|||
import org.opensearch.common.inject.internal.ErrorsException;
|
||||
import org.opensearch.common.inject.internal.InternalContext;
|
||||
import org.opensearch.common.inject.internal.InternalFactory;
|
||||
import org.elasticsearch.common.inject.spi.Dependency;
|
||||
import org.elasticsearch.common.inject.spi.InjectionPoint;
|
||||
import org.opensearch.common.inject.spi.Dependency;
|
||||
import org.opensearch.common.inject.spi.InjectionPoint;
|
||||
|
||||
import java.lang.reflect.Field;
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ package org.opensearch.common.inject;
|
|||
|
||||
import org.opensearch.common.inject.internal.Errors;
|
||||
import org.opensearch.common.inject.internal.InternalContext;
|
||||
import org.elasticsearch.common.inject.spi.InjectionPoint;
|
||||
import org.opensearch.common.inject.spi.InjectionPoint;
|
||||
|
||||
/**
|
||||
* Injects a field or method of a given object.
|
||||
|
|
|
@ -20,7 +20,7 @@ import org.opensearch.common.inject.InjectorImpl.MethodInvoker;
|
|||
import org.opensearch.common.inject.internal.Errors;
|
||||
import org.opensearch.common.inject.internal.ErrorsException;
|
||||
import org.opensearch.common.inject.internal.InternalContext;
|
||||
import org.elasticsearch.common.inject.spi.InjectionPoint;
|
||||
import org.opensearch.common.inject.spi.InjectionPoint;
|
||||
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.Method;
|
||||
|
|
|
@ -20,7 +20,7 @@ import org.opensearch.common.inject.internal.Errors;
|
|||
import org.opensearch.common.inject.internal.ErrorsException;
|
||||
import org.opensearch.common.inject.internal.InternalContext;
|
||||
import org.opensearch.common.inject.internal.InternalFactory;
|
||||
import org.elasticsearch.common.inject.spi.Dependency;
|
||||
import org.opensearch.common.inject.spi.Dependency;
|
||||
|
||||
/**
|
||||
* Resolves a single parameter, to be used in a constructor or method invocation.
|
||||
|
|
|
@ -19,7 +19,7 @@ package org.opensearch.common.inject;
|
|||
import org.opensearch.common.inject.internal.BindingImpl;
|
||||
import org.opensearch.common.inject.internal.Errors;
|
||||
import org.opensearch.common.inject.internal.MatcherAndConverter;
|
||||
import org.elasticsearch.common.inject.spi.TypeListenerBinding;
|
||||
import org.opensearch.common.inject.spi.TypeListenerBinding;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.util.Collections;
|
||||
|
|
|
@ -21,11 +21,11 @@ import org.opensearch.common.inject.internal.Errors;
|
|||
import org.opensearch.common.inject.internal.MatcherAndConverter;
|
||||
import org.opensearch.common.inject.internal.SourceProvider;
|
||||
import org.opensearch.common.inject.internal.Strings;
|
||||
import org.elasticsearch.common.inject.matcher.AbstractMatcher;
|
||||
import org.elasticsearch.common.inject.matcher.Matcher;
|
||||
import org.elasticsearch.common.inject.matcher.Matchers;
|
||||
import org.elasticsearch.common.inject.spi.TypeConverter;
|
||||
import org.elasticsearch.common.inject.spi.TypeConverterBinding;
|
||||
import org.opensearch.common.inject.matcher.AbstractMatcher;
|
||||
import org.opensearch.common.inject.matcher.Matcher;
|
||||
import org.opensearch.common.inject.matcher.Matchers;
|
||||
import org.opensearch.common.inject.spi.TypeConverter;
|
||||
import org.opensearch.common.inject.spi.TypeConverterBinding;
|
||||
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
import java.lang.reflect.Method;
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
package org.opensearch.common.inject;
|
||||
|
||||
import org.opensearch.common.inject.internal.Errors;
|
||||
import org.elasticsearch.common.inject.spi.TypeListenerBinding;
|
||||
import org.opensearch.common.inject.spi.TypeListenerBinding;
|
||||
|
||||
/**
|
||||
* Handles {@link Binder#bindListener} commands.
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
package org.opensearch.common.inject;
|
||||
|
||||
import org.opensearch.common.inject.internal.MoreTypes;
|
||||
import org.elasticsearch.common.inject.util.Types;
|
||||
import org.opensearch.common.inject.util.Types;
|
||||
|
||||
import java.lang.reflect.Constructor;
|
||||
import java.lang.reflect.Field;
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.common.inject.assistedinject;
|
||||
package org.opensearch.common.inject.assistedinject;
|
||||
|
||||
import org.opensearch.common.inject.BindingAnnotation;
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.common.inject.assistedinject;
|
||||
package org.opensearch.common.inject.assistedinject;
|
||||
|
||||
import org.opensearch.common.inject.Inject;
|
||||
import org.opensearch.common.inject.TypeLiteral;
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.common.inject.assistedinject;
|
||||
package org.opensearch.common.inject.assistedinject;
|
||||
|
||||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.Target;
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.common.inject.assistedinject;
|
||||
package org.opensearch.common.inject.assistedinject;
|
||||
|
||||
import org.opensearch.common.inject.ConfigurationException;
|
||||
import org.opensearch.common.inject.Inject;
|
||||
|
@ -22,9 +22,9 @@ import org.opensearch.common.inject.Injector;
|
|||
import org.opensearch.common.inject.Provider;
|
||||
import org.opensearch.common.inject.TypeLiteral;
|
||||
import org.opensearch.common.inject.internal.Errors;
|
||||
import org.elasticsearch.common.inject.spi.Dependency;
|
||||
import org.elasticsearch.common.inject.spi.HasDependencies;
|
||||
import org.elasticsearch.common.inject.spi.Message;
|
||||
import org.opensearch.common.inject.spi.Dependency;
|
||||
import org.opensearch.common.inject.spi.HasDependencies;
|
||||
import org.opensearch.common.inject.spi.Message;
|
||||
|
||||
import java.lang.reflect.InvocationHandler;
|
||||
import java.lang.reflect.Method;
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.common.inject.assistedinject;
|
||||
package org.opensearch.common.inject.assistedinject;
|
||||
|
||||
import org.opensearch.common.inject.BindingAnnotation;
|
||||
import org.opensearch.common.inject.Injector;
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.common.inject.assistedinject;
|
||||
package org.opensearch.common.inject.assistedinject;
|
||||
|
||||
import org.opensearch.common.inject.TypeLiteral;
|
||||
|
|
@ -18,4 +18,4 @@
|
|||
* Extension for combining factory interfaces with injection; this extension requires {@code
|
||||
* guice-jndi-2.0.jar}.
|
||||
*/
|
||||
package org.elasticsearch.common.inject.assistedinject;
|
||||
package org.opensearch.common.inject.assistedinject;
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.common.inject.binder;
|
||||
package org.opensearch.common.inject.binder;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.common.inject.binder;
|
||||
package org.opensearch.common.inject.binder;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.common.inject.binder;
|
||||
package org.opensearch.common.inject.binder;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.common.inject.binder;
|
||||
package org.opensearch.common.inject.binder;
|
||||
|
||||
/**
|
||||
* Binds to a constant value.
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.common.inject.binder;
|
||||
package org.opensearch.common.inject.binder;
|
||||
|
||||
import org.opensearch.common.inject.Key;
|
||||
import org.opensearch.common.inject.Provider;
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.common.inject.binder;
|
||||
package org.opensearch.common.inject.binder;
|
||||
|
||||
import org.opensearch.common.inject.Scope;
|
||||
|
|
@ -18,4 +18,4 @@
|
|||
* Interfaces which make up {@link org.opensearch.common.inject.Binder}'s
|
||||
* expression language.
|
||||
*/
|
||||
package org.elasticsearch.common.inject.binder;
|
||||
package org.opensearch.common.inject.binder;
|
|
@ -19,8 +19,8 @@ package org.opensearch.common.inject.internal;
|
|||
import org.opensearch.common.inject.Binder;
|
||||
import org.opensearch.common.inject.Key;
|
||||
import org.opensearch.common.inject.Scope;
|
||||
import org.elasticsearch.common.inject.spi.Element;
|
||||
import org.elasticsearch.common.inject.spi.InstanceBinding;
|
||||
import org.opensearch.common.inject.spi.Element;
|
||||
import org.opensearch.common.inject.spi.InstanceBinding;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.util.List;
|
||||
|
|
|
@ -21,10 +21,10 @@ import org.opensearch.common.inject.ConfigurationException;
|
|||
import org.opensearch.common.inject.Key;
|
||||
import org.opensearch.common.inject.Provider;
|
||||
import org.opensearch.common.inject.TypeLiteral;
|
||||
import org.elasticsearch.common.inject.binder.AnnotatedBindingBuilder;
|
||||
import org.elasticsearch.common.inject.spi.Element;
|
||||
import org.elasticsearch.common.inject.spi.InjectionPoint;
|
||||
import org.elasticsearch.common.inject.spi.Message;
|
||||
import org.opensearch.common.inject.binder.AnnotatedBindingBuilder;
|
||||
import org.opensearch.common.inject.spi.Element;
|
||||
import org.opensearch.common.inject.spi.InjectionPoint;
|
||||
import org.opensearch.common.inject.spi.Message;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.util.HashSet;
|
||||
|
|
|
@ -20,9 +20,9 @@ import org.opensearch.common.inject.Binding;
|
|||
import org.opensearch.common.inject.Injector;
|
||||
import org.opensearch.common.inject.Key;
|
||||
import org.opensearch.common.inject.Provider;
|
||||
import org.elasticsearch.common.inject.spi.BindingScopingVisitor;
|
||||
import org.elasticsearch.common.inject.spi.ElementVisitor;
|
||||
import org.elasticsearch.common.inject.spi.InstanceBinding;
|
||||
import org.opensearch.common.inject.spi.BindingScopingVisitor;
|
||||
import org.opensearch.common.inject.spi.ElementVisitor;
|
||||
import org.opensearch.common.inject.spi.InstanceBinding;
|
||||
|
||||
/**
|
||||
* @author crazybob@google.com (Bob Lee)
|
||||
|
|
|
@ -18,9 +18,9 @@ package org.opensearch.common.inject.internal;
|
|||
|
||||
import org.opensearch.common.inject.Binder;
|
||||
import org.opensearch.common.inject.Key;
|
||||
import org.elasticsearch.common.inject.binder.AnnotatedConstantBindingBuilder;
|
||||
import org.elasticsearch.common.inject.binder.ConstantBindingBuilder;
|
||||
import org.elasticsearch.common.inject.spi.Element;
|
||||
import org.opensearch.common.inject.binder.AnnotatedConstantBindingBuilder;
|
||||
import org.opensearch.common.inject.binder.ConstantBindingBuilder;
|
||||
import org.opensearch.common.inject.spi.Element;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.util.List;
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
package org.opensearch.common.inject.internal;
|
||||
|
||||
import org.elasticsearch.common.inject.spi.Message;
|
||||
import org.opensearch.common.inject.spi.Message;
|
||||
|
||||
/**
|
||||
* Handles errors in the Injector.
|
||||
|
|
|
@ -25,11 +25,11 @@ import org.opensearch.common.inject.Provider;
|
|||
import org.opensearch.common.inject.ProvisionException;
|
||||
import org.opensearch.common.inject.Scope;
|
||||
import org.opensearch.common.inject.TypeLiteral;
|
||||
import org.elasticsearch.common.inject.spi.Dependency;
|
||||
import org.elasticsearch.common.inject.spi.InjectionListener;
|
||||
import org.elasticsearch.common.inject.spi.InjectionPoint;
|
||||
import org.elasticsearch.common.inject.spi.Message;
|
||||
import org.elasticsearch.common.inject.spi.TypeListenerBinding;
|
||||
import org.opensearch.common.inject.spi.Dependency;
|
||||
import org.opensearch.common.inject.spi.InjectionListener;
|
||||
import org.opensearch.common.inject.spi.InjectionPoint;
|
||||
import org.opensearch.common.inject.spi.Message;
|
||||
import org.opensearch.common.inject.spi.TypeListenerBinding;
|
||||
|
||||
import java.io.PrintWriter;
|
||||
import java.io.StringWriter;
|
||||
|
|
|
@ -19,10 +19,10 @@ package org.opensearch.common.inject.internal;
|
|||
import org.opensearch.common.inject.Binder;
|
||||
import org.opensearch.common.inject.Injector;
|
||||
import org.opensearch.common.inject.Key;
|
||||
import org.elasticsearch.common.inject.spi.BindingTargetVisitor;
|
||||
import org.elasticsearch.common.inject.spi.Dependency;
|
||||
import org.elasticsearch.common.inject.spi.ExposedBinding;
|
||||
import org.elasticsearch.common.inject.spi.PrivateElements;
|
||||
import org.opensearch.common.inject.spi.BindingTargetVisitor;
|
||||
import org.opensearch.common.inject.spi.Dependency;
|
||||
import org.opensearch.common.inject.spi.ExposedBinding;
|
||||
import org.opensearch.common.inject.spi.PrivateElements;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ package org.opensearch.common.inject.internal;
|
|||
|
||||
import org.opensearch.common.inject.Binder;
|
||||
import org.opensearch.common.inject.Key;
|
||||
import org.elasticsearch.common.inject.binder.AnnotatedElementBuilder;
|
||||
import org.opensearch.common.inject.binder.AnnotatedElementBuilder;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.util.Objects;
|
||||
|
|
|
@ -20,12 +20,12 @@ import org.opensearch.common.inject.Binder;
|
|||
import org.opensearch.common.inject.Injector;
|
||||
import org.opensearch.common.inject.Key;
|
||||
import org.opensearch.common.inject.Provider;
|
||||
import org.elasticsearch.common.inject.spi.BindingTargetVisitor;
|
||||
import org.elasticsearch.common.inject.spi.Dependency;
|
||||
import org.elasticsearch.common.inject.spi.HasDependencies;
|
||||
import org.elasticsearch.common.inject.spi.InjectionPoint;
|
||||
import org.elasticsearch.common.inject.spi.InstanceBinding;
|
||||
import org.elasticsearch.common.inject.util.Providers;
|
||||
import org.opensearch.common.inject.spi.BindingTargetVisitor;
|
||||
import org.opensearch.common.inject.spi.Dependency;
|
||||
import org.opensearch.common.inject.spi.HasDependencies;
|
||||
import org.opensearch.common.inject.spi.InjectionPoint;
|
||||
import org.opensearch.common.inject.spi.InstanceBinding;
|
||||
import org.opensearch.common.inject.util.Providers;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
package org.opensearch.common.inject.internal;
|
||||
|
||||
import org.elasticsearch.common.inject.spi.Dependency;
|
||||
import org.opensearch.common.inject.spi.Dependency;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
|
||||
package org.opensearch.common.inject.internal;
|
||||
|
||||
import org.elasticsearch.common.inject.spi.Dependency;
|
||||
import org.opensearch.common.inject.spi.Dependency;
|
||||
|
||||
/**
|
||||
* Creates objects which will be injected.
|
||||
|
|
|
@ -19,8 +19,8 @@ package org.opensearch.common.inject.internal;
|
|||
import org.opensearch.common.inject.Binder;
|
||||
import org.opensearch.common.inject.Injector;
|
||||
import org.opensearch.common.inject.Key;
|
||||
import org.elasticsearch.common.inject.spi.BindingTargetVisitor;
|
||||
import org.elasticsearch.common.inject.spi.LinkedKeyBinding;
|
||||
import org.opensearch.common.inject.spi.BindingTargetVisitor;
|
||||
import org.opensearch.common.inject.spi.LinkedKeyBinding;
|
||||
|
||||
public final class LinkedBindingImpl<T> extends BindingImpl<T> implements LinkedKeyBinding<T> {
|
||||
|
||||
|
|
|
@ -20,8 +20,8 @@ import org.opensearch.common.inject.Binder;
|
|||
import org.opensearch.common.inject.Injector;
|
||||
import org.opensearch.common.inject.Key;
|
||||
import org.opensearch.common.inject.Provider;
|
||||
import org.elasticsearch.common.inject.spi.BindingTargetVisitor;
|
||||
import org.elasticsearch.common.inject.spi.ProviderKeyBinding;
|
||||
import org.opensearch.common.inject.spi.BindingTargetVisitor;
|
||||
import org.opensearch.common.inject.spi.ProviderKeyBinding;
|
||||
|
||||
public final class LinkedProviderBindingImpl<T>
|
||||
extends BindingImpl<T> implements ProviderKeyBinding<T> {
|
||||
|
|
|
@ -17,8 +17,8 @@
|
|||
package org.opensearch.common.inject.internal;
|
||||
|
||||
import org.opensearch.common.inject.TypeLiteral;
|
||||
import org.elasticsearch.common.inject.matcher.Matcher;
|
||||
import org.elasticsearch.common.inject.spi.TypeConverter;
|
||||
import org.opensearch.common.inject.matcher.Matcher;
|
||||
import org.opensearch.common.inject.spi.TypeConverter;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ package org.opensearch.common.inject.internal;
|
|||
|
||||
import org.opensearch.common.inject.ConfigurationException;
|
||||
import org.opensearch.common.inject.TypeLiteral;
|
||||
import org.elasticsearch.common.inject.spi.Message;
|
||||
import org.opensearch.common.inject.spi.Message;
|
||||
|
||||
import java.lang.reflect.Constructor;
|
||||
import java.lang.reflect.Field;
|
||||
|
|
|
@ -20,9 +20,9 @@ import org.opensearch.common.inject.Binder;
|
|||
import org.opensearch.common.inject.Injector;
|
||||
import org.opensearch.common.inject.Key;
|
||||
import org.opensearch.common.inject.PrivateBinder;
|
||||
import org.elasticsearch.common.inject.spi.Element;
|
||||
import org.elasticsearch.common.inject.spi.ElementVisitor;
|
||||
import org.elasticsearch.common.inject.spi.PrivateElements;
|
||||
import org.opensearch.common.inject.spi.Element;
|
||||
import org.opensearch.common.inject.spi.ElementVisitor;
|
||||
import org.opensearch.common.inject.spi.PrivateElements;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
|
|
|
@ -20,11 +20,11 @@ import org.opensearch.common.inject.Binder;
|
|||
import org.opensearch.common.inject.Injector;
|
||||
import org.opensearch.common.inject.Key;
|
||||
import org.opensearch.common.inject.Provider;
|
||||
import org.elasticsearch.common.inject.spi.BindingTargetVisitor;
|
||||
import org.elasticsearch.common.inject.spi.Dependency;
|
||||
import org.elasticsearch.common.inject.spi.HasDependencies;
|
||||
import org.elasticsearch.common.inject.spi.InjectionPoint;
|
||||
import org.elasticsearch.common.inject.spi.ProviderInstanceBinding;
|
||||
import org.opensearch.common.inject.spi.BindingTargetVisitor;
|
||||
import org.opensearch.common.inject.spi.Dependency;
|
||||
import org.opensearch.common.inject.spi.HasDependencies;
|
||||
import org.opensearch.common.inject.spi.InjectionPoint;
|
||||
import org.opensearch.common.inject.spi.ProviderInstanceBinding;
|
||||
|
||||
import java.util.HashSet;
|
||||
import java.util.Set;
|
||||
|
|
|
@ -21,8 +21,8 @@ import org.opensearch.common.inject.Exposed;
|
|||
import org.opensearch.common.inject.Key;
|
||||
import org.opensearch.common.inject.PrivateBinder;
|
||||
import org.opensearch.common.inject.Provider;
|
||||
import org.elasticsearch.common.inject.spi.Dependency;
|
||||
import org.elasticsearch.common.inject.spi.ProviderWithDependencies;
|
||||
import org.opensearch.common.inject.spi.Dependency;
|
||||
import org.opensearch.common.inject.spi.ProviderWithDependencies;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
|
|
|
@ -22,9 +22,9 @@ import org.opensearch.common.inject.Module;
|
|||
import org.opensearch.common.inject.Provider;
|
||||
import org.opensearch.common.inject.Provides;
|
||||
import org.opensearch.common.inject.TypeLiteral;
|
||||
import org.elasticsearch.common.inject.spi.Dependency;
|
||||
import org.elasticsearch.common.inject.spi.Message;
|
||||
import org.elasticsearch.common.inject.util.Modules;
|
||||
import org.opensearch.common.inject.spi.Dependency;
|
||||
import org.opensearch.common.inject.spi.Message;
|
||||
import org.opensearch.common.inject.util.Modules;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.lang.reflect.Member;
|
||||
|
|
|
@ -20,8 +20,8 @@ import org.opensearch.common.inject.Scope;
|
|||
import org.opensearch.common.inject.Scopes;
|
||||
import org.opensearch.common.inject.Singleton;
|
||||
import org.opensearch.common.inject.Stage;
|
||||
import org.elasticsearch.common.inject.binder.ScopedBindingBuilder;
|
||||
import org.elasticsearch.common.inject.spi.BindingScopingVisitor;
|
||||
import org.opensearch.common.inject.binder.ScopedBindingBuilder;
|
||||
import org.opensearch.common.inject.spi.BindingScopingVisitor;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
|
||||
|
|
|
@ -19,9 +19,9 @@ package org.opensearch.common.inject.internal;
|
|||
import org.opensearch.common.inject.Binder;
|
||||
import org.opensearch.common.inject.Injector;
|
||||
import org.opensearch.common.inject.Key;
|
||||
import org.elasticsearch.common.inject.spi.BindingTargetVisitor;
|
||||
import org.elasticsearch.common.inject.spi.Dependency;
|
||||
import org.elasticsearch.common.inject.spi.UntargettedBinding;
|
||||
import org.opensearch.common.inject.spi.BindingTargetVisitor;
|
||||
import org.opensearch.common.inject.spi.Dependency;
|
||||
import org.opensearch.common.inject.spi.UntargettedBinding;
|
||||
|
||||
public class UntargettedBindingImpl<T> extends BindingImpl<T> implements UntargettedBinding<T> {
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.common.inject.matcher;
|
||||
package org.opensearch.common.inject.matcher;
|
||||
|
||||
/**
|
||||
* Implements {@code and()} and {@code or()}.
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.common.inject.matcher;
|
||||
package org.opensearch.common.inject.matcher;
|
||||
|
||||
/**
|
||||
* Returns {@code true} or {@code false} for a given input.
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.common.inject.matcher;
|
||||
package org.opensearch.common.inject.matcher;
|
||||
|
||||
import org.elasticsearch.common.SuppressForbidden;
|
||||
|
|
@ -18,4 +18,4 @@
|
|||
* Used for matching things. Primarily used to pick out methods to which to
|
||||
* apply interceptors.
|
||||
*/
|
||||
package org.elasticsearch.common.inject.matcher;
|
||||
package org.opensearch.common.inject.matcher;
|
|
@ -15,7 +15,7 @@
|
|||
*/
|
||||
|
||||
|
||||
package org.elasticsearch.common.inject.multibindings;
|
||||
package org.opensearch.common.inject.multibindings;
|
||||
|
||||
import org.opensearch.common.inject.BindingAnnotation;
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.common.inject.multibindings;
|
||||
package org.opensearch.common.inject.multibindings;
|
||||
|
||||
import org.opensearch.common.inject.Binder;
|
||||
import org.opensearch.common.inject.Inject;
|
||||
|
@ -22,11 +22,11 @@ import org.opensearch.common.inject.Key;
|
|||
import org.opensearch.common.inject.Module;
|
||||
import org.opensearch.common.inject.Provider;
|
||||
import org.opensearch.common.inject.TypeLiteral;
|
||||
import org.elasticsearch.common.inject.binder.LinkedBindingBuilder;
|
||||
import org.elasticsearch.common.inject.multibindings.Multibinder.RealMultibinder;
|
||||
import org.elasticsearch.common.inject.spi.Dependency;
|
||||
import org.elasticsearch.common.inject.spi.ProviderWithDependencies;
|
||||
import org.elasticsearch.common.inject.util.Types;
|
||||
import org.opensearch.common.inject.binder.LinkedBindingBuilder;
|
||||
import org.opensearch.common.inject.multibindings.Multibinder.RealMultibinder;
|
||||
import org.opensearch.common.inject.spi.Dependency;
|
||||
import org.opensearch.common.inject.spi.ProviderWithDependencies;
|
||||
import org.opensearch.common.inject.util.Types;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.util.Collections;
|
||||
|
@ -36,8 +36,8 @@ import java.util.Map.Entry;
|
|||
import java.util.Set;
|
||||
|
||||
import static java.util.Collections.singleton;
|
||||
import static org.elasticsearch.common.inject.util.Types.newParameterizedType;
|
||||
import static org.elasticsearch.common.inject.util.Types.newParameterizedTypeWithOwner;
|
||||
import static org.opensearch.common.inject.util.Types.newParameterizedType;
|
||||
import static org.opensearch.common.inject.util.Types.newParameterizedTypeWithOwner;
|
||||
|
||||
/**
|
||||
* An API to bind multiple map entries separately, only to later inject them as
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.common.inject.multibindings;
|
||||
package org.opensearch.common.inject.multibindings;
|
||||
|
||||
import org.opensearch.common.inject.Binder;
|
||||
import org.opensearch.common.inject.Binding;
|
||||
|
@ -25,12 +25,12 @@ import org.opensearch.common.inject.Key;
|
|||
import org.opensearch.common.inject.Module;
|
||||
import org.opensearch.common.inject.Provider;
|
||||
import org.opensearch.common.inject.TypeLiteral;
|
||||
import org.elasticsearch.common.inject.binder.LinkedBindingBuilder;
|
||||
import org.opensearch.common.inject.binder.LinkedBindingBuilder;
|
||||
import org.opensearch.common.inject.internal.Errors;
|
||||
import org.elasticsearch.common.inject.spi.Dependency;
|
||||
import org.elasticsearch.common.inject.spi.HasDependencies;
|
||||
import org.elasticsearch.common.inject.spi.Message;
|
||||
import org.elasticsearch.common.inject.util.Types;
|
||||
import org.opensearch.common.inject.spi.Dependency;
|
||||
import org.opensearch.common.inject.spi.HasDependencies;
|
||||
import org.opensearch.common.inject.spi.Message;
|
||||
import org.opensearch.common.inject.util.Types;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.lang.reflect.Type;
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.common.inject.multibindings;
|
||||
package org.opensearch.common.inject.multibindings;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.util.concurrent.atomic.AtomicInteger;
|
|
@ -18,4 +18,4 @@
|
|||
* Extension for binding multiple instances in a collection; this extension requires {@code
|
||||
* guice-multibindings-2.0.jar}.
|
||||
*/
|
||||
package org.elasticsearch.common.inject.multibindings;
|
||||
package org.opensearch.common.inject.multibindings;
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.common.inject.name;
|
||||
package org.opensearch.common.inject.name;
|
||||
|
||||
import org.opensearch.common.inject.BindingAnnotation;
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.common.inject.name;
|
||||
package org.opensearch.common.inject.name;
|
||||
|
||||
import java.lang.annotation.Annotation;
|
||||
import java.util.Objects;
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.common.inject.name;
|
||||
package org.opensearch.common.inject.name;
|
||||
|
||||
import org.opensearch.common.inject.Binder;
|
||||
import org.opensearch.common.inject.Key;
|
|
@ -17,4 +17,4 @@
|
|||
/**
|
||||
* Support for binding to string-based names.
|
||||
*/
|
||||
package org.elasticsearch.common.inject.name;
|
||||
package org.opensearch.common.inject.name;
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.common.inject.spi;
|
||||
package org.opensearch.common.inject.spi;
|
||||
|
||||
import org.opensearch.common.inject.Scope;
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.common.inject.spi;
|
||||
package org.opensearch.common.inject.spi;
|
||||
|
||||
/**
|
||||
* Visits each of the strategies used to find an instance to satisfy an injection.
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.common.inject.spi;
|
||||
package org.opensearch.common.inject.spi;
|
||||
|
||||
import org.opensearch.common.inject.Binding;
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.common.inject.spi;
|
||||
package org.opensearch.common.inject.spi;
|
||||
|
||||
import org.opensearch.common.inject.Binding;
|
||||
import org.opensearch.common.inject.Key;
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.common.inject.spi;
|
||||
package org.opensearch.common.inject.spi;
|
||||
|
||||
import org.opensearch.common.inject.Scope;
|
||||
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.common.inject.spi;
|
||||
package org.opensearch.common.inject.spi;
|
||||
|
||||
import org.opensearch.common.inject.Binding;
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue