クラス AbstractMethodAnnotationPostProcessor<T extends AnnotationSE>
java.lang.ObjectSE
org.springframework.integration.config.AbstractMethodAnnotationPostProcessor<T>
- 型パラメーター:
T- ターゲットアノテーション型。
- 実装されているすべてのインターフェース:
Aware、BeanFactoryAware、MethodAnnotationPostProcessor<T>
- 既知の直属サブクラス
AggregatorAnnotationPostProcessor、BridgeFromAnnotationPostProcessor、BridgeToAnnotationPostProcessor、FilterAnnotationPostProcessor、InboundChannelAdapterAnnotationPostProcessor、RouterAnnotationPostProcessor、ServiceActivatorAnnotationPostProcessor、SplitterAnnotationPostProcessor、TransformerAnnotationPostProcessor
public abstract class AbstractMethodAnnotationPostProcessor<T extends AnnotationSE>
extends ObjectSE
implements MethodAnnotationPostProcessor<T>, BeanFactoryAware
メソッドレベルのアノテーションポストプロセッサーの基本クラス。
- 作成者:
- Mark Fisher, Artem Bilan, Gary Russell, Chris Bono, Ngoc Nhan
ネストされたクラスの要約
ネストされたクラス修飾子と型クラス説明protected static final recordフィールドのサマリー
フィールド修飾子と型フィールド説明protected static final StringSEprotected final org.apache.commons.logging.Logprotected static final StringSEインターフェース org.springframework.integration.config.annotation.MethodAnnotationPostProcessor から継承されたフィールド
INPUT_CHANNEL_ATTRIBUTEコンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明protected static @Nullable BeanDefinitionbuildLambdaMessageProcessor(ResolvableType beanType, AnnotatedBeanDefinition beanDefinition) protected voidcheckMessageHandlerAttributes(StringSE handlerBeanName, ListSE<AnnotationSE> annotations) protected voidconfigurePollingEndpoint(AbstractPollingEndpoint pollingEndpoint, @Nullable Poller poller) protected @Nullable AbstractEndpointcreateEndpoint(MessageHandler handler, MethodSE method, ListSE<AnnotationSE> annotations) protected BeanDefinitioncreateEndpointBeanDefinition(ComponentDefinition handlerBeanDefinition, ComponentDefinition beanDefinition, ListSE<AnnotationSE> annotations) protected abstract MessageHandlercreateHandler(ObjectSE bean, MethodSE method, ListSE<AnnotationSE> annotations) サブクラスは、MessageHandler を作成するためにこのメソッドを実装する必要があります。protected AbstractEndpointdoCreateEndpoint(MessageHandler handler, MessageChannel inputChannel, ListSE<AnnotationSE> annotations) extractAdviceChain(StringSE beanName, ListSE<AnnotationSE> annotations) protected StringSEgenerateHandlerBeanName(StringSE originalBeanName, MethodSE method) protected StringSEgenerateHandlerBeanName(StringSE originalBeanName, MergedAnnotations mergedAnnotations) protected StringSEgenerateHandlerBeanName(StringSE originalBeanName, MergedAnnotations mergedAnnotations, @Nullable StringSE methodName) protected ConfigurableListableBeanFactoryprotected DestinationResolver<MessageChannel> protected ConversionServiceprotected BeanDefinitionRegistrypostProcess(ObjectSE bean, StringSE beanName, MethodSE method, ListSE<AnnotationSE> annotations) voidprocessBeanDefinition(StringSE beanName, AnnotatedBeanDefinition beanDefinition, ListSE<AnnotationSE> annotations) protected booleanresolveAttributeToBoolean(StringSE attribute) protected @Nullable BeanDefinitionresolveHandlerBeanDefinition(StringSE beanName, AnnotatedBeanDefinition beanDefinition, ResolvableType handlerBeanType, ListSE<AnnotationSE> annotations) voidsetBeanFactory(BeanFactory beanFactory) protected static voidsetOutputChannelIfPresent(ListSE<AnnotationSE> annotations, AbstractMessageProducingHandler handler) クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース org.springframework.integration.config.annotation.MethodAnnotationPostProcessor から継承されたメソッド
beanAnnotationAware, getInputChannelAttribute, shouldCreateEndpoint, shouldCreateEndpoint, supportsPojoMethod
フィールドの詳細
logger
protected final org.apache.commons.logging.Log loggerADVICE_CHAIN_ATTRIBUTE
- 関連事項:
SEND_TIMEOUT_ATTRIBUTE
- 関連事項:
messageHandlerAttributes
annotationType
コンストラクターの詳細
AbstractMethodAnnotationPostProcessor
public AbstractMethodAnnotationPostProcessor()
メソッドの詳細
setBeanFactory
- 次で指定:
- インターフェース
BeanFactoryAwareのsetBeanFactory - 例外:
BeansException
getBeanFactory
getDefinitionRegistry
getConversionService
getChannelResolver
processBeanDefinition
public void processBeanDefinition(StringSE beanName, AnnotatedBeanDefinition beanDefinition, ListSE<AnnotationSE> annotations) - 次で指定:
- インターフェース
MethodAnnotationPostProcessor<T extends AnnotationSE>のprocessBeanDefinition
createEndpointBeanDefinition
protected BeanDefinition createEndpointBeanDefinition(ComponentDefinition handlerBeanDefinition, ComponentDefinition beanDefinition, ListSE<AnnotationSE> annotations) resolveHandlerBeanDefinition
protected @Nullable BeanDefinition resolveHandlerBeanDefinition(StringSE beanName, AnnotatedBeanDefinition beanDefinition, ResolvableType handlerBeanType, ListSE<AnnotationSE> annotations) postProcess
public ObjectSE postProcess(ObjectSE bean, StringSE beanName, MethodSE method, ListSE<AnnotationSE> annotations) - 次で指定:
- インターフェース
MethodAnnotationPostProcessor<T extends AnnotationSE>のpostProcess
extractAdviceChain
protected @Nullable ListSE<Advice> extractAdviceChain(StringSE beanName, ListSE<AnnotationSE> annotations) createEndpoint
protected @Nullable AbstractEndpoint createEndpoint(MessageHandler handler, MethodSE method, ListSE<AnnotationSE> annotations) doCreateEndpoint
protected AbstractEndpoint doCreateEndpoint(MessageHandler handler, MessageChannel inputChannel, ListSE<AnnotationSE> annotations) configurePollingEndpoint
protected void configurePollingEndpoint(AbstractPollingEndpoint pollingEndpoint, @Nullable Poller poller) generateHandlerBeanName
generateHandlerBeanName
protected StringSE generateHandlerBeanName(StringSE originalBeanName, MergedAnnotations mergedAnnotations) generateHandlerBeanName
protected StringSE generateHandlerBeanName(StringSE originalBeanName, MergedAnnotations mergedAnnotations, @Nullable StringSE methodName) setOutputChannelIfPresent
protected static void setOutputChannelIfPresent(ListSE<AnnotationSE> annotations, AbstractMessageProducingHandler handler) checkMessageHandlerAttributes
protected void checkMessageHandlerAttributes(StringSE handlerBeanName, ListSE<AnnotationSE> annotations) resolveAttributeToBoolean
buildLambdaMessageProcessor
protected static @Nullable BeanDefinition buildLambdaMessageProcessor(ResolvableType beanType, AnnotatedBeanDefinition beanDefinition) createHandler
protected abstract MessageHandler createHandler(ObjectSE bean, MethodSE method, ListSE<AnnotationSE> annotations) サブクラスは、MessageHandler を作成するためにこのメソッドを実装する必要があります。- パラメーター:
bean- Bean。method- メソッド。annotations- メソッドのメッセージングアノテーション(またはメタアノテーション階層)。- 戻り値:
- MessageHandler。