Examples of registerShutdownHook()


Examples of org.springframework.context.support.ClassPathXmlApplicationContext.registerShutdownHook()

  
   @Test
   public void testSpringConfig() throws Throwable
   {
         ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("RouterConfigTest.xml");
         ctx.registerShutdownHook();
   }
  
   @MessageProcessor
   public static class TestMp implements Cloneable
   {
View Full Code Here

Examples of org.springframework.context.support.ClassPathXmlApplicationContext.registerShutdownHook()

   private <T,N> void runAllCombinations(Checker checker) throws Throwable
   {
      for (String clusterManager : clusterManagers)
      {
         ClassPathXmlApplicationContext actx = new ClassPathXmlApplicationContext(clusterManager);
         actx.registerShutdownHook();

         ClusterInfoSessionFactory factory = (ClusterInfoSessionFactory)actx.getBean("clusterSessionFactory");

         if (checker != null)
            checker.check("pass for:" + clusterManager,factory);
View Full Code Here

Examples of org.springframework.context.support.ClassPathXmlApplicationContext.registerShutdownHook()

                  + LINE );

        final AbstractApplicationContext context =
                new ClassPathXmlApplicationContext("classpath:META-INF/spring/integration/*-context.xml");

        context.registerShutdownHook();

        final Scanner scanner = new Scanner(System.in);

        final CoffeeService service = context.getBean(CoffeeService.class);

View Full Code Here

Examples of org.springframework.context.support.ClassPathXmlApplicationContext.registerShutdownHook()

          + LINE_SEPARATOR );

    final AbstractApplicationContext context =
        new ClassPathXmlApplicationContext("classpath:META-INF/spring/integration/*-context.xml");

    context.registerShutdownHook();

    final Scanner scanner = new Scanner(System.in);

    final UserService service = context.getBean(UserService.class);

View Full Code Here

Examples of org.springframework.context.support.ClassPathXmlApplicationContext.registerShutdownHook()

          + "\n=========================================================" );

    final AbstractApplicationContext context =
        new ClassPathXmlApplicationContext("classpath:META-INF/spring/integration/transaction-synch-context.xml");

    context.registerShutdownHook();

    LOGGER.info("\n========================================================="
          + "\n                                                          "
          + "\n    This is the Transaction Synchronization Sample -      "
          + "\n                                                          "
View Full Code Here

Examples of org.springframework.context.support.ClassPathXmlApplicationContext.registerShutdownHook()

        + LINE );

    final AbstractApplicationContext context =
      new ClassPathXmlApplicationContext("classpath:META-INF/spring/integration/*-context.xml");

    context.registerShutdownHook();

    final Scanner scanner = new Scanner(System.in);

    final CoffeeService service = context.getBean(CoffeeService.class);

View Full Code Here

Examples of org.springframework.context.support.ClassPathXmlApplicationContext.registerShutdownHook()

          + "\n=========================================================" );

    final AbstractApplicationContext context =
        new ClassPathXmlApplicationContext("classpath:META-INF/spring/integration/*-context.xml");

    context.registerShutdownHook();

    final SearchRequestor searchRequestor = context.getBean(SearchRequestor.class);
    final SearchA searchA = context.getBean(SearchA.class);
    final SearchB searchB = context.getBean(SearchB.class);

View Full Code Here

Examples of org.springframework.context.support.ClassPathXmlApplicationContext.registerShutdownHook()

                  + "\n==========================================================" );

        final AbstractApplicationContext context =
                new ClassPathXmlApplicationContext("classpath:META-INF/spring/integration/*-context.xml");

        context.registerShutdownHook();

        final Scanner scanner = new Scanner(System.in);

        final DynamicPeriodicTrigger trigger = context.getBean(DynamicPeriodicTrigger.class);

View Full Code Here

Examples of org.springframework.context.support.ClassPathXmlApplicationContext.registerShutdownHook()

          + "\n=========================================================" );

    final AbstractApplicationContext context =
        new ClassPathXmlApplicationContext("classpath:META-INF/spring/integration/*-context.xml");

    context.registerShutdownHook();

    final Scanner scanner = new Scanner(System.in);

    final StringConversionService service = context.getBean(StringConversionService.class);

View Full Code Here

Examples of org.springframework.context.support.ClassPathXmlApplicationContext.registerShutdownHook()

          + HORIZONTAL_LINE );

    final AbstractApplicationContext context =
        new ClassPathXmlApplicationContext("classpath:META-INF/spring/integration/*-context.xml");

    context.registerShutdownHook();

    final Scanner scanner = new Scanner(System.in);

    LOGGER.info(HORIZONTAL_LINE
          + "\n"
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.