T - Return type of the instruction.@SpringAware
public class AutowiringCallableWrapper<T>
extends java.lang.Object
implements java.io.Serializable, java.util.concurrent.Callable<T>, org.springframework.context.ApplicationContextAware
Instruction that adds the Hazelcast annotation to
perform Spring bean injection and apply *Aware methods.| Constructor and Description |
|---|
AutowiringCallableWrapper(com.budjb.spring.distributed.cluster.Instruction<? extends T> instruction)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
T |
call() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
public AutowiringCallableWrapper(com.budjb.spring.distributed.cluster.Instruction<? extends T> instruction)
instruction - Instruction to wrap.public T call() throws java.lang.Exception
call in interface java.util.concurrent.Callable<T>java.lang.Exceptionpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansException