ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vkulichenko <valentin.kuliche...@gmail.com>
Subject Re: How to get Spring context
Date Thu, 13 Aug 2015 21:21:21 GMT
You can use @IgniteSpringApplicationContextResource annotation to inject app
context into tasks, jobs, closures, entry processor and other entities. For
example:

private static class MyRunnable implements IgniteRunnable {
    @SpringApplicationContextResource
    private ApplicationContext appCtx;

    @Override public void run() {
        // TODO
    }
}

Will this work for you?

-Val



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/How-to-get-Spring-context-tp943p961.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Mime
View raw message