org.vrspace.server.command
Class create

java.lang.Object
  extended byorg.vrspace.server.command.create
All Implemented Interfaces:
Command

public class create
extends java.lang.Object
implements Command

Request format: create className
The command creates a new instance of className.


Constructor Summary
create()
           
 
Method Summary
protected  Transform createTransform(Client client, VRObject vrObject)
          Creates a transform for this VRObject.
 void exec(Request req)
          Request format: create className
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

create

public create()
Method Detail

exec

public void exec(Request req)
          throws java.lang.Exception
Request format: create className

Specified by:
exec in interface Command
Throws:
java.lang.Exception

createTransform

protected Transform createTransform(Client client,
                                    VRObject vrObject)
                             throws java.lang.Exception
Creates a transform for this VRObject. This method should only be called if a transform does not already exist for the object. The client becomes the owner of the new transform. Code like this should be eventually moved into a common method for all VRObjects called when the object is first created.

Throws:
java.lang.Exception