com.sun.enterprise.container.common.impl
Class ContainerUtilImpl

java.lang.Object
  extended by com.sun.enterprise.container.common.impl.ContainerUtilImpl
All Implemented Interfaces:
ContainerUtil, org.jvnet.hk2.component.PreDestroy

@Service
public class ContainerUtilImpl
extends Object
implements ContainerUtil, org.jvnet.hk2.component.PreDestroy


Constructor Summary
ContainerUtilImpl()
           
 
Method Summary
 CallFlowAgent getCallFlowAgent()
           
 ComponentEnvManager getComponentEnvManager()
          Utility method to return ComponentEnvManager
static ContainerUtil getContainerUtil()
           
 InvocationManager getInvocationManager()
          Utility method to get hold of InvocationManager
 Timer getTimer()
          Utility method to return a JDK Timer.
 javax.persistence.EntityManager lookupExtendedEntityManager(javax.persistence.EntityManagerFactory emf)
           
 void preDestroy()
          The component is about to be removed from commission
 void scheduleTask(Runnable runnable)
          Utility method to schedule an asynchronous task.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContainerUtilImpl

public ContainerUtilImpl()
Method Detail

getContainerUtil

public static ContainerUtil getContainerUtil()

getInvocationManager

public InvocationManager getInvocationManager()
Description copied from interface: ContainerUtil
Utility method to get hold of InvocationManager

Specified by:
getInvocationManager in interface ContainerUtil
Returns:
InvocationManager

getComponentEnvManager

public ComponentEnvManager getComponentEnvManager()
Description copied from interface: ContainerUtil
Utility method to return ComponentEnvManager

Specified by:
getComponentEnvManager in interface ContainerUtil
Returns:
ComponentEnvManager

lookupExtendedEntityManager

public javax.persistence.EntityManager lookupExtendedEntityManager(javax.persistence.EntityManagerFactory emf)

getCallFlowAgent

public CallFlowAgent getCallFlowAgent()
Specified by:
getCallFlowAgent in interface ContainerUtil

getTimer

public Timer getTimer()
Description copied from interface: ContainerUtil
Utility method to return a JDK Timer. Containers must use this timer instead of creating their own

Specified by:
getTimer in interface ContainerUtil
Returns:
Timer

scheduleTask

public void scheduleTask(Runnable runnable)
Description copied from interface: ContainerUtil
Utility method to schedule an asynchronous task. The implementation will prbaby choose a worker thread from a threadpool and execute the given runnable using the thread.

Specified by:
scheduleTask in interface ContainerUtil

preDestroy

public void preDestroy()
The component is about to be removed from commission

Specified by:
preDestroy in interface org.jvnet.hk2.component.PreDestroy


Copyright © 2012 GlassFish Community. All Rights Reserved.