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 -
Method Summary
Modifier and TypeMethodDescriptionUtility method to return ComponentEnvManagerstatic ContainerUtilorg.glassfish.api.invocation.InvocationManagerUtility method to get hold of InvocationManagergetTimer()Utility method to return a JDK Timer.voidThe component is about to be removed from commissionvoidscheduleTask(Runnable runnable) Utility method to schedule an asynchronous task.
-
Constructor Details
-
ContainerUtilImpl
public ContainerUtilImpl()
-
-
Method Details
-
getContainerUtil
-
getInvocationManager
public org.glassfish.api.invocation.InvocationManager getInvocationManager()Description copied from interface:ContainerUtilUtility method to get hold of InvocationManager- Specified by:
getInvocationManagerin interfaceContainerUtil- Returns:
- InvocationManager
-
getComponentEnvManager
Description copied from interface:ContainerUtilUtility method to return ComponentEnvManager- Specified by:
getComponentEnvManagerin interfaceContainerUtil- Returns:
- ComponentEnvManager
-
getCallFlowAgent
- Specified by:
getCallFlowAgentin interfaceContainerUtil
-
getTimer
Description copied from interface:ContainerUtilUtility method to return a JDK Timer. Containers must use this timer instead of creating their own- Specified by:
getTimerin interfaceContainerUtil- Returns:
- Timer
-
scheduleTask
Description copied from interface:ContainerUtilUtility 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:
scheduleTaskin interfaceContainerUtil- Parameters:
runnable-
-
preDestroy
public void preDestroy()The component is about to be removed from commission- Specified by:
preDestroyin interfaceorg.glassfish.hk2.api.PreDestroy
-