org.smallmind.cloud.namespace.java.pool
Class JavaContextComponentInstance

java.lang.Object
  extended by org.smallmind.cloud.namespace.java.pool.JavaContextComponentInstance
All Implemented Interfaces:
EventListener, JavaContextListener, Existential, ComponentInstance<PooledJavaContext>

public class JavaContextComponentInstance
extends Object
implements ComponentInstance<PooledJavaContext>, JavaContextListener


Constructor Summary
JavaContextComponentInstance(ComponentPool<PooledJavaContext> componentPool, PooledJavaContext pooledJavaContext)
           
 
Method Summary
 void close()
           
 void contextAborted(JavaContextEvent javaContextEvent)
           
 void contextClosed(JavaContextEvent javaContextEvent)
           
 StackTraceElement[] getExistentialStackTrace()
           
 PooledJavaContext serve()
           
 boolean validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaContextComponentInstance

public JavaContextComponentInstance(ComponentPool<PooledJavaContext> componentPool,
                                    PooledJavaContext pooledJavaContext)
                             throws NamingException
Throws:
NamingException
Method Detail

getExistentialStackTrace

public StackTraceElement[] getExistentialStackTrace()
Specified by:
getExistentialStackTrace in interface Existential

validate

public boolean validate()
Specified by:
validate in interface ComponentInstance<PooledJavaContext>

contextClosed

public void contextClosed(JavaContextEvent javaContextEvent)
Specified by:
contextClosed in interface JavaContextListener

contextAborted

public void contextAborted(JavaContextEvent javaContextEvent)
Specified by:
contextAborted in interface JavaContextListener

serve

public PooledJavaContext serve()
                        throws Exception
Specified by:
serve in interface ComponentInstance<PooledJavaContext>
Throws:
Exception

close

public void close()
           throws Exception
Specified by:
close in interface ComponentInstance<PooledJavaContext>
Throws:
Exception


Copyright © 2012. All Rights Reserved.