Class JavaContextComponentInstance
- java.lang.Object
-
- org.smallmind.quorum.namespace.java.pool.JavaContextComponentInstance
-
- All Implemented Interfaces:
EventListener,Existential,JavaContextListener,ComponentInstance<PooledJavaContext>
public class JavaContextComponentInstance extends Object implements ComponentInstance<PooledJavaContext>, JavaContextListener
-
-
Constructor Summary
Constructors Constructor Description JavaContextComponentInstance(ComponentPool<PooledJavaContext> componentPool, PooledJavaContext pooledJavaContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidcontextAborted(JavaContextEvent javaContextEvent)voidcontextClosed(JavaContextEvent javaContextEvent)StackTraceElement[]getExistentialStackTrace()PooledJavaContextserve()booleanvalidate()
-
-
-
Constructor Detail
-
JavaContextComponentInstance
public JavaContextComponentInstance(ComponentPool<PooledJavaContext> componentPool, PooledJavaContext pooledJavaContext) throws NamingException
- Throws:
NamingException
-
-
Method Detail
-
getExistentialStackTrace
public StackTraceElement[] getExistentialStackTrace()
- Specified by:
getExistentialStackTracein interfaceExistential
-
validate
public boolean validate()
- Specified by:
validatein interfaceComponentInstance<PooledJavaContext>
-
contextClosed
public void contextClosed(JavaContextEvent javaContextEvent)
- Specified by:
contextClosedin interfaceJavaContextListener
-
contextAborted
public void contextAborted(JavaContextEvent javaContextEvent)
- Specified by:
contextAbortedin interfaceJavaContextListener
-
serve
public PooledJavaContext serve() throws Exception
- Specified by:
servein interfaceComponentInstance<PooledJavaContext>- Throws:
Exception
-
close
public void close() throws Exception- Specified by:
closein interfaceComponentInstance<PooledJavaContext>- Throws:
Exception
-
-