public interface BeanMethodElement extends MethodElement
EMPTY_ELEMENT_ARRAY
CLASS_NAME_SUFFIX, EMPTY_METADATA, VALUE_MEMBER
EMPTY
Modifier and Type | Method and Description |
---|---|
default BeanMethodElement |
executable()
Make the method executable.
|
default BeanMethodElement |
executable(boolean processOnStartup)
Make the method executable.
|
BeanParameterElement[] |
getParameters() |
default BeanMethodElement |
inject()
Make the method injected.
|
default BeanMethodElement |
intercept(AnnotationValue<?>... annotationValue)
Intercept the method.
|
default BeanMethodElement |
postConstruct()
Make the method a
PostConstruct hook. |
default BeanMethodElement |
preDestroy()
Make the method a
PreDestroy hook. |
default BeanMethodElement |
withParameters(Consumer<BeanParameterElement[]> parameterConsumer)
Process the bean parameters.
|
addAssociatedBean, getDeclaredTypeVariables, getDescription, getGenericReturnType, getReceiverType, getReturnType, getSuspendParameters, getThrownTypes, hasParameters, isDefault, isSuspend, of, overrides, withNewParameters
getDeclaringType, getModifiers, getOwningType, isAccessible, isAccessible, isReflectionRequired, isReflectionRequired
annotate, annotate, annotate, annotate, annotate, getDescription, getDocumentation, getName, getNativeType, getSimpleName, isAbstract, isFinal, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, removeAnnotation, removeAnnotation, removeAnnotationIf, removeStereotype, removeStereotype
booleanValue, booleanValue, booleanValue, booleanValue, classValue, classValue, classValue, classValue, classValues, classValues, classValues, classValues, doubleValue, doubleValue, doubleValue, enumValue, enumValue, enumValue, enumValue, enumValues, enumValues, enumValues, enumValues, findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, findRepeatableAnnotation, findRepeatableAnnotation, getAnnotation, getAnnotation, getAnnotationNameByStereotype, getAnnotationNameByStereotype, getAnnotationNames, getAnnotationNamesByStereotype, getAnnotationNamesByStereotype, getAnnotationType, getAnnotationType, getAnnotationTypeByStereotype, getAnnotationTypeByStereotype, getAnnotationTypesByStereotype, getAnnotationTypesByStereotype, getAnnotationTypesByStereotype, getAnnotationValuesByType, getDeclaredAnnotation, getDeclaredAnnotation, getDeclaredAnnotationNameByStereotype, getDeclaredAnnotationNames, getDeclaredAnnotationNamesByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationValuesByType, getDeclaredMetadata, getDeclaredStereotypeAnnotationNames, getDefaultValue, getDefaultValue, getDefaultValue, getDefaultValue, getDefaultValues, getStereotypeAnnotationNames, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValues, getValues, hasAnnotation, hasAnnotation, hasDeclaredAnnotation, hasDeclaredAnnotation, hasDeclaredStereotype, hasDeclaredStereotype, hasDeclaredStereotype, hasPropertyExpressions, hasSimpleAnnotation, hasSimpleDeclaredAnnotation, hasStereotype, hasStereotype, hasStereotype, hasStereotype, intValue, intValue, intValue, isAnnotationPresent, isDeclaredAnnotationPresent, isEmpty, isFalse, isFalse, isPresent, isPresent, isRepeatableAnnotation, isRepeatableAnnotation, isTrue, isTrue, longValue, longValue, stringValue, stringValue, stringValue, stringValue, stringValues, stringValues, stringValues, stringValues, synthesize, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
getAnnotationValuesByName, getAnnotationValuesByStereotype, getDeclaredAnnotationValuesByName, getValues, hasDeclaredStereotype, isAnnotationPresent, isDeclaredAnnotationPresent
isDeclaredNonNull, isDeclaredNullable, isNonNull, isNullable
getAnnotationMetadata
@NonNull default BeanMethodElement intercept(AnnotationValue<?>... annotationValue)
annotationValue
- The annotation to intercept@NonNull default BeanMethodElement executable()
@NonNull default BeanMethodElement executable(boolean processOnStartup)
processOnStartup
- Whether to process on startup@NonNull default BeanMethodElement inject()
@NonNull default BeanMethodElement preDestroy()
PreDestroy
hook.@NonNull default BeanMethodElement postConstruct()
PostConstruct
hook.@NonNull default BeanMethodElement withParameters(@NonNull Consumer<BeanParameterElement[]> parameterConsumer)
parameterConsumer
- The parameter consumer@NonNull BeanParameterElement[] getParameters()
getParameters
in interface MethodElement