public static final class Blade.Builder.Binder<Text,Plugin,Server>
extends java.lang.Object
| Constructor and Description |
|---|
Binder(Blade.Builder<Text,Plugin,Server> builder,
boolean insertToBeginning) |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
bind(@NotNull java.lang.Class<T> type,
@NotNull ArgumentProvider<T> provider,
java.lang.Class<? extends java.lang.annotation.Annotation>... annotations)
Register a binding for an argument provider.
|
<T> void |
bind(@NotNull java.lang.Class<T> type,
@NotNull ArgumentProvider<T> provider,
@NotNull java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> annotations)
Register a binding for an argument provider.
|
<T> void |
bindSender(@NotNull java.lang.Class<T> type,
@NotNull SenderProvider<T> provider)
Register a binding for a sender provider.
|
<T> void |
release(@NotNull java.lang.Class<T> type,
java.lang.Class<? extends java.lang.annotation.Annotation>... annotations)
Release a binding for an argument type.
|
<T> void |
release(@NotNull java.lang.Class<T> type,
@NotNull java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> annotations)
Release a binding for an argument type.
|
<T> void |
releaseSender(@NotNull java.lang.Class<T> type)
Release a binding for a sender type.
|
<T> void |
unsafeBind(@NotNull java.lang.Class<T> type,
@NotNull ArgumentProvider<?> provider,
java.lang.Class<? extends java.lang.annotation.Annotation>... annotations)
Register a binding for an argument provider without type safety.
|
<T> void |
unsafeBind(@NotNull java.lang.Class<T> type,
@NotNull ArgumentProvider<?> provider,
@NotNull java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> annotations)
Register a binding for an argument provider without type safety.
|
<T> void |
unsafeBindSender(@NotNull java.lang.Class<T> type,
@NotNull SenderProvider<?> provider)
Register a binding for a sender provider without type safety.
|
public Binder(Blade.Builder<Text,Plugin,Server> builder, boolean insertToBeginning)
@SafeVarargs
public final <T> void bind(@NotNull
@NotNull java.lang.Class<T> type,
@NotNull
@NotNull ArgumentProvider<T> provider,
@NotNull
java.lang.Class<? extends java.lang.annotation.Annotation>... annotations)
T - the typetype - the type of the argumentprovider - the providerannotations - the required annotations for the argumentpublic <T> void bind(@NotNull
@NotNull java.lang.Class<T> type,
@NotNull
@NotNull ArgumentProvider<T> provider,
@NotNull
@NotNull java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> annotations)
T - the typetype - the type of the argumentprovider - the providerannotations - the required annotations for the argument@SafeVarargs
public final <T> void unsafeBind(@NotNull
@NotNull java.lang.Class<T> type,
@NotNull
@NotNull ArgumentProvider<?> provider,
@NotNull
java.lang.Class<? extends java.lang.annotation.Annotation>... annotations)
T - the typetype - the type of the argumentprovider - the unsafe providerannotations - the required annotations for the argumentpublic <T> void unsafeBind(@NotNull
@NotNull java.lang.Class<T> type,
@NotNull
@NotNull ArgumentProvider<?> provider,
@NotNull
@NotNull java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> annotations)
T - the typetype - the type of the argumentprovider - the unsafe providerannotations - the required annotations for the argument@SafeVarargs
public final <T> void release(@NotNull
@NotNull java.lang.Class<T> type,
@NotNull
java.lang.Class<? extends java.lang.annotation.Annotation>... annotations)
T - the typetype - the type of the argumentannotations - the required annotationspublic <T> void release(@NotNull
@NotNull java.lang.Class<T> type,
@NotNull
@NotNull java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> annotations)
T - the typetype - the type of the argumentannotations - the required annotationspublic <T> void bindSender(@NotNull
@NotNull java.lang.Class<T> type,
@NotNull
@NotNull SenderProvider<T> provider)
T - the type of the sendertype - the type of the senderprovider - the providerpublic <T> void unsafeBindSender(@NotNull
@NotNull java.lang.Class<T> type,
@NotNull
@NotNull SenderProvider<?> provider)
T - the type of the sendertype - the type of the senderprovider - the unsafe providerpublic <T> void releaseSender(@NotNull
@NotNull java.lang.Class<T> type)
T - the type of the sendertype - the type of the sender