TPTP 4.1.0 Platform Project
Public API Specification

org.eclipse.hyades.execution.core.loader
Class ScopedChannelClassLoader.Provider

java.lang.Object
  extended byjava.util.Observable
      extended byorg.eclipse.hyades.execution.core.loader.ScopedChannelClassLoader.Provider
Enclosing class:
ScopedChannelClassLoader

public static class ScopedChannelClassLoader.Provider
extends java.util.Observable

The scoped channel class loader provider class is used by the provider of the classes that will be served up through the channel to the consuming instance of the scoped channel class loader


Constructor Summary
ScopedChannelClassLoader.Provider(java.lang.String context, java.lang.ClassLoader sourceClassLoader, java.nio.channels.ReadableByteChannel readableChannel, java.nio.channels.WritableByteChannel writableChannel, int maximumClassSize)
          Constructs a scoped channel class loader provider, used to serve up resources/classes to the consuming instance
 
Method Summary
 void provide()
          Provides the resources requested by the remote end of the channel, an end diretive received will cause the provide method to return to the caller and therefore unblock the caller
 java.lang.String toString()
          Output textual representation of provider instance
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ScopedChannelClassLoader.Provider

public ScopedChannelClassLoader.Provider(java.lang.String context,
                                         java.lang.ClassLoader sourceClassLoader,
                                         java.nio.channels.ReadableByteChannel readableChannel,
                                         java.nio.channels.WritableByteChannel writableChannel,
                                         int maximumClassSize)
Constructs a scoped channel class loader provider, used to serve up resources/classes to the consuming instance

Parameters:
context - the context this command is executing within
sourceClassLoader - the classloader used to resolve resources to be sent over the channel
readableChannel - the channel that offers control to this instance
writableChannel - the channel that provides data and minimal control to the consuming instance
maximumClassSize - used to optimize buffers, all class sizes must be less than this number in kilobytes, for example, 64 = (64 * 1024) bytes maximum class size
Method Detail

provide

public void provide()
             throws java.io.IOException
Provides the resources requested by the remote end of the channel, an end diretive received will cause the provide method to return to the caller and therefore unblock the caller

Throws:
java.io.IOException

toString

public java.lang.String toString()
Output textual representation of provider instance


TPTP 4.1.0 Platform Project
Public API Specification