org.springframework.yarn.container
Class ContainerHandler

java.lang.Object
  extended by org.springframework.yarn.container.ContainerHandler

public class ContainerHandler
extends Object

Handler for a common object representing something to be run. This is usually used when a plain pojo is configured with @YarnContainer and @OnYarnContainerStart annotations.

Author:
Janne Valkealahti

Constructor Summary
ContainerHandler(Object target, Method method)
          Instantiates a new container handler.
 
Method Summary
 void handle()
          Handle and run method associated with a bean target.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerHandler

public ContainerHandler(Object target,
                        Method method)
Instantiates a new container handler.

Parameters:
target - the target bean
method - the target method
Method Detail

handle

public void handle()
Handle and run method associated with a bean target.