Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

mucode
Interface GroupHandler  view GroupHandler download GroupHandler.java


public interface GroupHandler

Classes implementing this interface can access a group before its content is installed on the receiving µServer. A requirement for the classes implementing this interface is that they must:

  1. be declared as public, and
  2. implement a public, parameterless constructor.

Version:
1.0

Method Summary
 java.lang.Thread unpack(Group group)
          This method is called automatically by the µServer that receives the group specified as a parameter.
 

Method Detail

unpack

public java.lang.Thread unpack(Group group)
                        throws MuCodeException
This method is called automatically by the µServer that receives the group specified as a parameter. At this point, the µServer has already inserted in the private class space associated with the group all the classes that came with it.
Access to the µServer (e.g., to retrieve the private class space associated with the group) can be obtained by invoking the method getServer() 55 on the group.
Typical implementations of this method will use the content of the group to create a new object that can be used to start a new thread in the µServer. Such thread object is passed to the µServer as a return value of this method. if the implementation of the method does not need to spawn any thread, null should be returned.