Class MethodRegistrar

java.lang.Object
ch.ralscha.extdirectspring.controller.MethodRegistrar
All Implemented Interfaces:
EventListener, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>, org.springframework.core.Ordered

@Service public class MethodRegistrar extends Object implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>, org.springframework.core.Ordered
Spring application listener that listens for ContextRefreshedEvent events. If such an event is received the listener will scan for ExtDirectMethod annotated methods in the current ApplicationContext. Found methods will be cached in the MethodInfoCache . The class also reports warnings and errors of misconfigured methods.
  • Field Summary

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    void
    onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.context.ApplicationListener

    supportsAsyncExecution
  • Constructor Details

    • MethodRegistrar

      @Autowired public MethodRegistrar(MethodInfoCache methodInfoCache)
  • Method Details

    • onApplicationEvent

      public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
      Specified by:
      onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered