Package org.springframework.context.support

Examples of org.springframework.context.support.GenericXmlApplicationContext.refresh()


        setupCredentials(environment, scanner);
        setupS3info(environment, scanner);

        context.load("classpath:META-INF/spring/integration/*-context.xml");
        context.registerShutdownHook();
        context.refresh();

        System.out.print("\nPlease enter the path to the file you want to upload: ");
        filePath = scanner.nextLine();

        final MessageChannel messageChannel = context.getBean("s3channel", MessageChannel.class);
View Full Code Here


        setupCredentials(environment, scanner);
        setupS3info(environment, scanner);

        context.load("classpath:META-INF/spring/integration/*-context.xml");
        context.registerShutdownHook();
        context.refresh();

      }
      else if("q".equals(input.trim())) {
        System.out.println("Exiting application...bye.");
        System.exit(0);
View Full Code Here

    // context.getClass().getClassLoader());
    context.setClassLoader(classLoader);
    context.setValidating(false);
    context.load("classpath:/kite9-configuration.xml");
    context.addBeanFactoryPostProcessor(poc);
    context.refresh();
    Kite9Context runContext = (Kite9Context) context.getBean("context");
    Thread.currentThread().setContextClassLoader(runContext.getUserClassLoader());
    return context;
  }
View Full Code Here

  @Override
  public List<Notes> findAllForUser(String id) {
   
    GenericXmlApplicationContext ctx = new GenericXmlApplicationContext();
    ctx.load("classpath:app-context.xml");
    ctx.refresh();
   
   
    UsersService us = ctx.getBean("usersService", UsersService.class);
    NotesService ns = ctx.getBean("notesService", NotesService.class);
   
View Full Code Here

  public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, java.io.IOException {

    GenericXmlApplicationContext ctx = new GenericXmlApplicationContext();
    ctx.load("classpath:app-context.xml");
    ctx.refresh();

    UsersService usersService = ctx.getBean("usersService", UsersService.class);

    boolean success = usersService.changePassword(request.getParameter("un"), request.getParameter("pw"));
View Full Code Here

    HttpSession session = request.getSession();
    session.setMaxInactiveInterval(-1);

    GenericXmlApplicationContext ctx = new GenericXmlApplicationContext();
    ctx.load("classpath:app-context.xml");
    ctx.refresh();

    UsersService usersService = ctx.getBean("usersService", UsersService.class);
    //validate user and return user object
    Users userSession = usersService.loginCheck(request.getParameter("un"), request.getParameter("pw"));
 
View Full Code Here

   */
  protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
   
    GenericXmlApplicationContext ctx = new GenericXmlApplicationContext();
    ctx.load("classpath:setup-context.xml");
    ctx.refresh();
   
    response.sendRedirect("Login.jsp");
  }

  /**
 
View Full Code Here

  public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, java.io.IOException {

    GenericXmlApplicationContext ctx = new GenericXmlApplicationContext();
    ctx.load("classpath:app-context.xml");
    ctx.refresh();

    UsersService usersService = ctx.getBean("usersService", UsersService.class);
    PreferencesService preferenceService = ctx.getBean("preferencesService", PreferencesService.class);

    BasicPasswordEncryptor passwordEncryptor = new BasicPasswordEncryptor();
View Full Code Here

    HttpSession session = request.getSession();
    session.setMaxInactiveInterval(-1);
   
    GenericXmlApplicationContext ctx = new GenericXmlApplicationContext();
    ctx.load("classpath:app-context.xml");
    ctx.refresh();

    PreferencesService prefService = ctx.getBean("preferencesService", PreferencesService.class);
    ClientService cs = ctx.getBean("clientService", ClientService.class);
   
    Users user = (Users) session.getAttribute("userSession");
View Full Code Here

    HttpSession session = request.getSession();
    session.setMaxInactiveInterval(-1);
   
    GenericXmlApplicationContext ctx = new GenericXmlApplicationContext();
    ctx.load("classpath:app-context.xml");
    ctx.refresh();
   
    //Keeping track of user session and notes
    PreferencesService preferencesService = ctx.getBean("preferencesService", PreferencesService.class);
   
    //Pulls user session and confirms they are logged in
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.