Package org.incendo.cloud.injection
Class ParameterInjector.ConstantInjector<C,T>
java.lang.Object
org.incendo.cloud.injection.ParameterInjector.ConstantInjector<C,T>
- All Implemented Interfaces:
ParameterInjector<C,T>
- Enclosing interface:
ParameterInjector<C,T>
public static final class ParameterInjector.ConstantInjector<C,T>
extends Object
implements ParameterInjector<C,T>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.incendo.cloud.injection.ParameterInjector
ParameterInjector.ConstantInjector<C,T> -
Method Summary
-
Method Details
-
create
public @NonNull T create(@NonNull CommandContext<C> context, @NonNull AnnotationAccessor annotationAccessor) Description copied from interface:ParameterInjectorAttempts to create a value that should then be injected into the Command annotated method.If the injector cannot (or shouldn't) create a value, it is free to return
null.- Specified by:
createin interfaceParameterInjector<C,T> - Parameters:
context- command context that is requesting the injectionannotationAccessor- annotation accessor proxying the method and parameter which the value is being injected into- Returns:
- the value if it could be created, else
nullin which case no value will be injected by this particular injector
-
equals
-
hashCode
public int hashCode() -
toString
-