Provide access to the client object instance.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@282 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: Client.java,v 1.11 2001/07/25 00:51:05 mdb Exp $
|
// $Id: Client.java,v 1.12 2001/08/21 00:58:10 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.cocktail.cher.client;
|
package com.threerings.cocktail.cher.client;
|
||||||
|
|
||||||
@@ -7,6 +7,7 @@ import java.util.ArrayList;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import com.threerings.cocktail.cher.Log;
|
import com.threerings.cocktail.cher.Log;
|
||||||
|
import com.threerings.cocktail.cher.data.ClientObject;
|
||||||
import com.threerings.cocktail.cher.dobj.DObjectManager;
|
import com.threerings.cocktail.cher.dobj.DObjectManager;
|
||||||
import com.threerings.cocktail.cher.net.BootstrapData;
|
import com.threerings.cocktail.cher.net.BootstrapData;
|
||||||
import com.threerings.cocktail.cher.net.Credentials;
|
import com.threerings.cocktail.cher.net.Credentials;
|
||||||
@@ -167,6 +168,15 @@ public class Client
|
|||||||
return _cloid;
|
return _cloid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns a reference to the client object associated with this
|
||||||
|
* session. It is only valid for the duration of the session.
|
||||||
|
*/
|
||||||
|
public ClientObject getClientObject ()
|
||||||
|
{
|
||||||
|
return _invmgr.getClientObject();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the invocation manager associated with this session. This
|
* Returns the invocation manager associated with this session. This
|
||||||
* reference is only valid for the duration of the session.
|
* reference is only valid for the duration of the session.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: InvocationDirector.java,v 1.7 2001/08/14 06:47:15 mdb Exp $
|
// $Id: InvocationDirector.java,v 1.8 2001/08/21 00:58:10 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.cocktail.cher.client;
|
package com.threerings.cocktail.cher.client;
|
||||||
|
|
||||||
@@ -250,6 +250,15 @@ public class InvocationManager
|
|||||||
return _invocationId++;
|
return _invocationId++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Access to the client object so that the client instance doesn't
|
||||||
|
* have to subscribe to it just to make it available.
|
||||||
|
*/
|
||||||
|
protected ClientObject getClientObject ()
|
||||||
|
{
|
||||||
|
return _clobj;
|
||||||
|
}
|
||||||
|
|
||||||
protected static class Response
|
protected static class Response
|
||||||
{
|
{
|
||||||
public String name;
|
public String name;
|
||||||
|
|||||||
Reference in New Issue
Block a user