T
- The generic type@Internal public final class ApplicationEventPublisherFactory<T> extends Object implements BeanDefinition<ApplicationEventPublisher<T>>, BeanFactory<ApplicationEventPublisher<T>>, BeanDefinitionReference<ApplicationEventPublisher<T>>
ApplicationEventPublisher
.NAMED_ATTRIBUTE
CLASS_NAME_SUFFIX, EMPTY_METADATA, VALUE_MEMBER
EMPTY
Constructor and Description |
---|
ApplicationEventPublisherFactory() |
Modifier and Type | Method and Description |
---|---|
ApplicationEventPublisher<T> |
build(BeanResolutionContext resolutionContext,
BeanContext context,
BeanDefinition<ApplicationEventPublisher<T>> definition)
Builds a bean instance.
|
boolean |
equals(Object o) |
AnnotationMetadata |
getAnnotationMetadata()
Supplies the metadata.
|
String |
getBeanDefinitionName() |
Class<ApplicationEventPublisher<T>> |
getBeanType()
Returns the bean type.
|
List<Argument<?>> |
getTypeArguments()
If the bean itself declares any type arguments this method will return the classes that represent those types.
|
List<Argument<?>> |
getTypeArguments(Class<?> type)
Return the type arguments for the given interface or super type for this bean.
|
int |
hashCode() |
boolean |
isAbstract() |
boolean |
isCandidateBean(Argument<?> beanType)
Return whether this bean type is a candidate for dependency injection for the passed type.
|
boolean |
isContainerType()
Checks whether the bean type is a container type.
|
boolean |
isEnabled(BeanContext context,
BeanResolutionContext resolutionContext)
Return whether this component is enabled for the given context.
|
boolean |
isPresent() |
boolean |
isSingleton() |
BeanDefinition<ApplicationEventPublisher<T>> |
load()
Loads the bean definition.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
asArgument, findMethod, findPossibleMethods, getConstructor, getContainerElement, getDeclaredQualifier, getDeclaringType, getExecutableMethods, getInjectedFields, getInjectedMethods, getName, getPostConstructMethods, getPreDestroyMethods, getRequiredComponents, getRequiredMethod, getScope, getScopeName, getTypeArguments, getTypeParameters, getTypeParameters, inject, inject, isIterable, isProvided, isProxy, resolveDynamicQualifier
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
build
isConfigurationProperties, isContextScope, load
getExposedTypes, isPrimary, requiresMethodProcessing
isEnabled
public boolean isAbstract()
isAbstract
in interface BeanDefinition<ApplicationEventPublisher<T>>
public boolean isCandidateBean(Argument<?> beanType)
BeanType
isCandidateBean
in interface BeanDefinition<ApplicationEventPublisher<T>>
isCandidateBean
in interface BeanType<ApplicationEventPublisher<T>>
beanType
- The bean typepublic AnnotationMetadata getAnnotationMetadata()
AnnotationMetadataProvider
AnnotationMetadata.EMPTY_METADATA
.getAnnotationMetadata
in interface AnnotationMetadataProvider
AnnotationMetadata
public boolean isContainerType()
BeanType
isContainerType
in interface BeanType<ApplicationEventPublisher<T>>
Iterable
.public boolean isEnabled(BeanContext context, BeanResolutionContext resolutionContext)
BeanContextConditional
isEnabled
in interface BeanContextConditional
context
- The contextresolutionContext
- The bean resolution contextpublic boolean isSingleton()
isSingleton
in interface BeanDefinition<ApplicationEventPublisher<T>>
isSingleton
in interface BeanDefinitionReference<ApplicationEventPublisher<T>>
public Class<ApplicationEventPublisher<T>> getBeanType()
BeanType
getBeanType
in interface BeanDefinition<ApplicationEventPublisher<T>>
getBeanType
in interface BeanType<ApplicationEventPublisher<T>>
public String getBeanDefinitionName()
getBeanDefinitionName
in interface BeanDefinitionReference<ApplicationEventPublisher<T>>
BeanDefinition
public BeanDefinition<ApplicationEventPublisher<T>> load()
BeanDefinitionReference
load
in interface BeanDefinitionReference<ApplicationEventPublisher<T>>
public boolean isPresent()
isPresent
in interface BeanDefinitionReference<ApplicationEventPublisher<T>>
public ApplicationEventPublisher<T> build(BeanResolutionContext resolutionContext, BeanContext context, BeanDefinition<ApplicationEventPublisher<T>> definition) throws BeanInstantiationException
BeanFactory
build
in interface BeanFactory<ApplicationEventPublisher<T>>
resolutionContext
- The bean resolution contextcontext
- The contextdefinition
- The definitionBeanInstantiationException
- if the instance could not be instantiated@NonNull public List<Argument<?>> getTypeArguments(Class<?> type)
BeanDefinition
getTypeArguments
in interface BeanDefinition<ApplicationEventPublisher<T>>
type
- The super class or interface type@NonNull public List<Argument<?>> getTypeArguments()
BeanDefinition
getTypeArguments
in interface BeanDefinition<ApplicationEventPublisher<T>>