Annotation Interface Implementation
Indicates that the annotated class is a custom implementation that should replace the default implementation.
A class annotated with Implementation will be automatically searched for with help of the ClassFinders
and instantiated by guice. Following types are candidates for automatic registration.
Additionally, the following classes can be also automatically registered via their dedicated annotations.
Middleware(via@Implementation.Middleware)TypeAdapter(via@Implementation.TypeAdapter)Validator(via@Implementation.Validator)
Dependencies on other framework components
If you need access to other components of JDACommands, you can get all Properties of stage JDACScope.CONFIGURATION
by either injecting (see list underneath) or using JDACIntrospection.
Please note that this could lead to cycling dependencies errors,
for more information see JDACPropertyProvider.
Following components are directly injectable by Guice:
If you need other properties of stage JDACScope.CONFIGURATION, just inject the JDACIntrospection instance and retrieve
them manually.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceA class annotated withImplementation.Middlewarewill be automatically searched for and instantiated as aMiddlewareby guice.static @interfaceA class annotated withImplementation.TypeAdapterwill be automatically searched for and instantiated as aTypeAdapterby guice.static @interfaceA class annotated withImplementation.Validatorwill be automatically searched for and instantiated as aValidatorby guice.