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.
  • 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