Package org.ow2.joram.spring
Class JoramDestination
- java.lang.Object
-
- org.ow2.joram.spring.JoramDestination
-
- All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.FactoryBean
public class JoramDestination extends Object implements org.springframework.beans.factory.FactoryBean, org.springframework.beans.factory.DisposableBean
This class holds the Joram destination. If set the destination can be deleted on destroy.
-
-
Field Summary
Fields Modifier and Type Field Description private booleandeleteOnStopprivate Destinationdeststatic Loggerlogger
-
Constructor Summary
Constructors Constructor Description JoramDestination()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()ObjectgetObject()ClassgetObjectType()booleanisDeleteOnStop()booleanisSingleton()voidsetDeleteOnStop(boolean deleteOnStop)voidsetDestination(Destination dest)
-
-
-
Field Detail
-
logger
public static final Logger logger
-
dest
private Destination dest
-
deleteOnStop
private boolean deleteOnStop
-
-
Method Detail
-
setDestination
public void setDestination(Destination dest)
- Parameters:
dest- the Joram destination to set
-
getObject
public Object getObject() throws Exception
- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean- Throws:
Exception
-
getObjectType
public Class getObjectType()
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean
-
isSingleton
public boolean isSingleton()
- Specified by:
isSingletonin interfaceorg.springframework.beans.factory.FactoryBean
-
destroy
public void destroy() throws Exception- Specified by:
destroyin interfaceorg.springframework.beans.factory.DisposableBean- Throws:
Exception
-
isDeleteOnStop
public boolean isDeleteOnStop()
- Returns:
- the deleteOnStop
-
setDeleteOnStop
public void setDeleteOnStop(boolean deleteOnStop)
- Parameters:
deleteOnStop- the deleteOnStop to set
-
-