Example usage for org.springframework.web.context.support SpringBeanAutowiringSupport processInjectionBasedOnCurrentContext

List of usage examples for org.springframework.web.context.support SpringBeanAutowiringSupport processInjectionBasedOnCurrentContext

Introduction

In this page you can find the example usage for org.springframework.web.context.support SpringBeanAutowiringSupport processInjectionBasedOnCurrentContext.

Prototype

public static void processInjectionBasedOnCurrentContext(Object target) 

Source Link

Document

Process @Autowired injection for the given target object, based on the current web application context.

Usage

From source file:streaming.spring.AutowireServlet.java

@Override
public void init() throws ServletException {

    SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(this);
}

From source file:com.liyablieva.jaxws.service.EmployeeServiceImpl.java

@PostConstruct
public void init() {
    System.out.println("postconstruct has run.");
    SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(this);
}

From source file:com.ut.healthelink.jobs.processBatches.java

@Override
public void execute(JobExecutionContext context) throws JobExecutionException {

    try {//from w w  w . ja v a  2  s.  co m
        SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(this);
        transactionInManager.processBatches();
    } catch (Exception ex) {
        try {
            throw new Exception("Error occurred trying to process batch files from schedule task", ex);
        } catch (Exception ex1) {
            Logger.getLogger(processBatches.class.getName()).log(Level.SEVERE, null, ex1);
        }
    }

}

From source file:com.ut.healthelink.jobs.loadBatches.java

@Override
public void execute(JobExecutionContext context) throws JobExecutionException {

    try {/* w  ww . j a  v a 2 s  . c  om*/
        SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(this);
        transactionInManager.loadBatches();
    } catch (Exception ex) {
        try {
            throw new Exception("Error occurred trying to load batch files from schedule task", ex);
        } catch (Exception ex1) {
            Logger.getLogger(loadBatches.class.getName()).log(Level.SEVERE, null, ex1);
        }
    }

}

From source file:com.ut.healthelink.jobs.MoveSFTPFiles.java

@Override
public void execute(JobExecutionContext context) throws JobExecutionException {

    try {// w w  w.ja v a  2  s . co m
        SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(this);
        transactionInManager.moveSFTPFiles();
    } catch (Exception ex) {
        try {
            throw new Exception("Error occurred trying to move SFTP files from schedule task", ex);
        } catch (Exception ex1) {
            Logger.getLogger(MoveSFTPFiles.class.getName()).log(Level.SEVERE, null, ex1);
        }
    }

}

From source file:com.ut.healthelink.jobs.MoveRhapsodyFiles.java

@Override
public void execute(JobExecutionContext context) throws JobExecutionException {

    try {// w w w. j  a va2  s .  c om
        SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(this);
        transactionInManager.moveRhapsodyFiles();
    } catch (Exception ex) {
        try {
            throw new Exception("Error occurred trying to move Rhapsody files from schedule task", ex);
        } catch (Exception ex1) {
            Logger.getLogger(MoveRhapsodyFiles.class.getName()).log(Level.SEVERE, null, ex1);
        }
    }

}

From source file:com.ut.healthelink.jobs.generateOutputFiles.java

@Override
public void execute(JobExecutionContext context) throws JobExecutionException {
    try {/*from  w ww  . j  a v  a  2s . c  om*/
        SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(this);

        transactionOutManager.generateOutputFiles();
    } catch (Exception ex) {
        try {
            throw new Exception("Error occurred trying to generate output files from schedule task", ex);
        } catch (Exception ex1) {
            Logger.getLogger(generateOutputFiles.class.getName()).log(Level.SEVERE, null, ex1);
        }
    }

}

From source file:com.ut.healthelink.jobs.processOutputRecords.java

@Override
public void execute(JobExecutionContext context) throws JobExecutionException {
    try {/*from  w w w  .  j  a v  a  2s . c o  m*/
        SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(this);

        transactionOutManager.selectOutputRecordsForProcess(0);
    } catch (Exception ex) {
        try {
            throw new Exception("Error occurred trying to process output records from schedule task", ex);
        } catch (Exception ex1) {
            Logger.getLogger(processOutputRecords.class.getName()).log(Level.SEVERE, null, ex1);
        }
    }

}

From source file:com.totoland.web.service.ws.GetCustomerInfoWS.java

/**
 * Creates a new instance of GetCustomerInfoWS
 */
public GetCustomerInfoWS() {
    SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(this);
}

From source file:com.rr.wabshs.ui.jobs.runReports.java

@Override
public void execute(JobExecutionContext context) throws JobExecutionException {

    try {/*from w  w  w. ja v a2s.co  m*/
        SpringBeanAutowiringSupport.processInjectionBasedOnCurrentContext(this);
        reportmanager.runReports(programId);
    } catch (Exception ex) {
        try {
            throw new Exception("Error occurredfor runReports job  - new type schedule task", ex);
        } catch (Exception ex1) {
            Logger.getLogger(runReports.class.getName()).log(Level.SEVERE, null, ex1);
        }
    }

}