Record Class GuiceExtensionData
java.lang.Object
java.lang.Record
io.github.kaktushose.jdac.guice.GuiceExtensionData
- Record Components:
providedInjector- TheInjectorto be used instead of creating one
- All Implemented Interfaces:
io.github.kaktushose.jdac.configuration.Extension.Data
public record GuiceExtensionData(com.google.inject.Injector providedInjector)
extends Record
implements io.github.kaktushose.jdac.configuration.Extension.Data
Custom
Extension.Data to be used to configure this extension.-
Constructor Summary
ConstructorsConstructorDescriptionGuiceExtensionData(com.google.inject.Injector providedInjector) Creates an instance of aGuiceExtensionDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.com.google.inject.InjectorReturns the value of theprovidedInjectorrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GuiceExtensionData
public GuiceExtensionData(com.google.inject.Injector providedInjector) Creates an instance of aGuiceExtensionDatarecord class.- Parameters:
providedInjector- the value for theprovidedInjectorrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
providedInjector
public com.google.inject.Injector providedInjector()Returns the value of theprovidedInjectorrecord component.- Returns:
- the value of the
providedInjectorrecord component
-