return "hopobject" for prototype for untyped objects
This commit is contained in:
parent
8d63fd35af
commit
1a30f698a5
1 changed files with 9 additions and 5 deletions
|
@ -275,18 +275,22 @@ public class Application extends UnicastRemoteObject implements IRemoteApp, Runn
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public Prototype getPrototype (String str) {
|
|
||||||
return typemgr.getPrototype (str);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return a prototype for a given node. If the node doesn't specify a prototype,
|
||||||
|
* return the generic hopobject prototype.
|
||||||
|
*/
|
||||||
public Prototype getPrototype (INode n) {
|
public Prototype getPrototype (INode n) {
|
||||||
String protoname = n.getPrototype ();
|
String protoname = n.getPrototype ();
|
||||||
if (protoname == null)
|
if (protoname == null)
|
||||||
return null;
|
return typemgr.getPrototype ("hopobject");
|
||||||
return getPrototype (protoname);
|
return typemgr.getPrototype (protoname);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the user currently associated with a given Hop session ID.
|
||||||
|
*/
|
||||||
public User getUser (String sessionID) {
|
public User getUser (String sessionID) {
|
||||||
if (sessionID == null)
|
if (sessionID == null)
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Add table
Reference in a new issue