Class ContainerUtilImpl
- java.lang.Object
-
- com.sun.enterprise.container.common.impl.ContainerUtilImpl
-
- All Implemented Interfaces:
ContainerUtil
,org.glassfish.hk2.api.PreDestroy
@Service public class ContainerUtilImpl extends Object implements ContainerUtil, org.glassfish.hk2.api.PreDestroy
-
-
Constructor Summary
Constructors Constructor Description ContainerUtilImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CallFlowAgent
getCallFlowAgent()
ComponentEnvManager
getComponentEnvManager()
Utility method to return ComponentEnvManagerstatic ContainerUtil
getContainerUtil()
InvocationManager
getInvocationManager()
Utility method to get hold of InvocationManagerTimer
getTimer()
Utility method to return a JDK Timer.void
preDestroy()
The component is about to be removed from commissionvoid
scheduleTask(Runnable runnable)
Utility method to schedule an asynchronous task.
-
-
-
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 interfaceContainerUtil
- Returns:
- InvocationManager
-
getComponentEnvManager
public ComponentEnvManager getComponentEnvManager()
Description copied from interface:ContainerUtil
Utility method to return ComponentEnvManager- Specified by:
getComponentEnvManager
in interfaceContainerUtil
- Returns:
- ComponentEnvManager
-
getCallFlowAgent
public CallFlowAgent getCallFlowAgent()
- Specified by:
getCallFlowAgent
in interfaceContainerUtil
-
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 interfaceContainerUtil
- 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 interfaceContainerUtil
-
preDestroy
public void preDestroy()
The component is about to be removed from commission- Specified by:
preDestroy
in interfaceorg.glassfish.hk2.api.PreDestroy
-
-