Class GuiceInstantiator
java.lang.Object
io.github.kaktushose.jdac.guice.internal.GuiceInstantiator
- All Implemented Interfaces:
Instantiator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Tinstance(Class<T> clazz, JDACIntrospection introspection) This method will be called each time an instance of a class is needed.
-
Constructor Details
-
GuiceInstantiator
-
-
Method Details
-
instance
Description copied from interface:InstantiatorThis method will be called each time an instance of a class is needed.
The provided
JDACIntrospectioninstance orJDACIntrospection.accessScoped()can be used to retrieve other components/parts of this framework, e.g.MessageResolver.- Specified by:
instancein interfaceInstantiator- Parameters:
clazz- theClassof needed instanceintrospection- theJDACIntrospectioninstance of this runtime (scope =JDACScope.RUNTIME).
-