Class ListenHere4Sqs

java.lang.Object
net.subnoize.listenhere.sqs.ListenHere4Sqs
All Implemented Interfaces:
java.util.EventListener, Provider, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextClosedEvent>

@Configuration("ListenHere4Sqs")
public class ListenHere4Sqs
extends java.lang.Object
implements Provider, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextClosedEvent>
  • Field Summary

    Fields
    Modifier and Type Field Description
    static java.lang.String PROVIDER  
  • Constructor Summary

    Constructors
    Constructor Description
    ListenHere4Sqs()  
  • Method Summary

    Modifier and Type Method Description
    SqsExecutionTemplate getExecutionTemplate​(ListenTo to, java.lang.String queueUrl, java.lang.reflect.Method method, java.lang.Object target)  
    net.subnoize.listenhere.sqs.ListenHere4SqsWorker getMesssageWorker​(SqsExecutionTemplate template)  
    void onApplicationEvent​(org.springframework.context.event.ContextClosedEvent event)  
    void registerListener​(java.lang.Class<?> klass)  
    void shutdown()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • ListenHere4Sqs

      public ListenHere4Sqs()
  • Method Details

    • shutdown

      public void shutdown()
    • registerListener

      public void registerListener​(java.lang.Class<?> klass)
      Specified by:
      registerListener in interface Provider
    • onApplicationEvent

      public void onApplicationEvent​(org.springframework.context.event.ContextClosedEvent event)
      Specified by:
      onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextClosedEvent>
    • getMesssageWorker

      @Bean(name="ListenHere4SqsWorker") @Scope("prototype") public net.subnoize.listenhere.sqs.ListenHere4SqsWorker getMesssageWorker​(SqsExecutionTemplate template)
    • getExecutionTemplate

      @Bean(name="SqsExecutionTemplate") @Scope("prototype") public SqsExecutionTemplate getExecutionTemplate​(ListenTo to, java.lang.String queueUrl, java.lang.reflect.Method method, java.lang.Object target) throws java.lang.NoSuchMethodException
      Throws:
      java.lang.NoSuchMethodException