summaryrefslogtreecommitdiff
path: root/src/main/java/core/VSMessageStub.java
blob: 95a515be5db092810bfce62ae2f7ba7ca512826a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package core;

/**
 * An object of this class represents a message stub. A message stub allows
 * to run the init method on a VSMessage object. The init method should be
 * hidden by the protocol programming API.
 *
 * @author Paul C. Buetow
 */
public class VSMessageStub {
    /** The message */
    private VSMessage message;

    /**
     * The constructor of the message stub. Creates a new message stub object.
     *
     * @param message the message
     */
    public VSMessageStub(VSMessage message) {
        this.message = message;
    }

    /* (non-Javadoc)
     * @see core.VSMessage#init(VSInternalProcess, java.util.String, boolean)
     */
    public void init(VSInternalProcess process, String protocolClassname,
                     boolean isServerMessage) {
        message.init(process, protocolClassname, isServerMessage);
    }
}