Class GridPeerDeployAwareTaskAdapter<T,​R>

    • Constructor Detail

      • GridPeerDeployAwareTaskAdapter

        protected GridPeerDeployAwareTaskAdapter​(@Nullable
                                                 @Nullable GridPeerDeployAware pda)
        Constructor that receives deployment information for task.
        Parameters:
        pda - Deployment information.
    • Method Detail

      • deployClass

        public Class<?> deployClass()
        Gets top level user class being deployed.
        Specified by:
        deployClass in interface GridPeerDeployAware
        Returns:
        Top level user deployed class.
      • classLoader

        public ClassLoader classLoader()
        Gets class loader for the class. This class loader must be able to load the class returned from GridPeerDeployAware.deployClass() as well as all of its dependencies.

        Note that in most cases the class loader returned from this method and the class loader for the class returned from GridPeerDeployAware.deployClass() method will be the same. If they are not the same, it is required that the class loader returned from this method still has to be able to load the deploy class and all its dependencies.

        Specified by:
        classLoader in interface GridPeerDeployAware
        Returns:
        Class loader for the class.