Package org.apache.juneau.commons.inject
Record Class ConditionContext
java.lang.Object
java.lang.Record
org.apache.juneau.commons.inject.ConditionContext
- Record Components:
beanStore- The bean store.settings- The settings facade.classLoader- The classloader used for class-presence checks.annotatedElement- The annotated class/method/field under evaluation.
public record ConditionContext(BeanStore beanStore, Settings settings, ClassLoader classLoader, AnnotatedElement annotatedElement)
extends Record
Runtime context for evaluating
Condition instances.-
Constructor Summary
ConstructorsConstructorDescriptionConditionContext(BeanStore beanStore, Settings settings, ClassLoader classLoader, AnnotatedElement annotatedElement) Creates an instance of aConditionContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theannotatedElementrecord component.Returns the value of thebeanStorerecord component.Returns the value of theclassLoaderrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.settings()Returns the value of thesettingsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConditionContext
public ConditionContext(BeanStore beanStore, Settings settings, ClassLoader classLoader, AnnotatedElement annotatedElement) Creates an instance of aConditionContextrecord class.- Parameters:
beanStore- the value for thebeanStorerecord componentsettings- the value for thesettingsrecord componentclassLoader- the value for theclassLoaderrecord componentannotatedElement- the value for theannotatedElementrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
beanStore
Returns the value of thebeanStorerecord component.- Returns:
- the value of the
beanStorerecord component
-
settings
Returns the value of thesettingsrecord component.- Returns:
- the value of the
settingsrecord component
-
classLoader
Returns the value of theclassLoaderrecord component.- Returns:
- the value of the
classLoaderrecord component
-
annotatedElement
Returns the value of theannotatedElementrecord component.- Returns:
- the value of the
annotatedElementrecord component
-