org.springframework.yarn.container
Class YarnContainerFactoryBean

java.lang.Object
  extended by org.springframework.yarn.container.YarnContainerFactoryBean
All Implemented Interfaces:
FactoryBean<YarnContainer>, InitializingBean

public class YarnContainerFactoryBean
extends Object
implements InitializingBean, FactoryBean<YarnContainer>

Simple factory bean for YarnContainers.

Author:
Janne Valkealahti

Constructor Summary
YarnContainerFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
 YarnContainer getObject()
           
 Class<YarnContainer> getObjectType()
           
 boolean isSingleton()
           
 void setContainerClass(Class<? extends YarnContainer> containerClass)
          Sets the container class.
 void setContainerRef(YarnContainer containerRef)
          Sets the container ref.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YarnContainerFactoryBean

public YarnContainerFactoryBean()
Method Detail

getObject

public YarnContainer getObject()
                        throws Exception
Specified by:
getObject in interface FactoryBean<YarnContainer>
Throws:
Exception

getObjectType

public Class<YarnContainer> getObjectType()
Specified by:
getObjectType in interface FactoryBean<YarnContainer>

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface FactoryBean<YarnContainer>

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

setContainerClass

public void setContainerClass(Class<? extends YarnContainer> containerClass)
Sets the container class.

Parameters:
containerClass - the new container class

setContainerRef

public void setContainerRef(YarnContainer containerRef)
Sets the container ref.

Parameters:
containerRef - the new container ref