//
// $Id: PlaceConfig.java,v 1.4 2002/07/23 05:54:52 mdb Exp $

package com.threerings.crowd.data;

import com.threerings.io.SimpleStreamableObject;
import com.threerings.crowd.client.PlaceController;

/**
 * The place config class encapsulates the configuration information for a
 * particular type of place. The hierarchy of place config objects mimics
 * the hierarchy of place managers and controllers. Both the place manager
 * and place controller are provided with the place config object when the
 * place is created.
 *
 * <p> The place config object is also the mechanism used to instantiate
 * the appropriate place manager and controller. Every place must have an
 * associated place config derived class that overrides {@link
 * #getControllerClass} and {@link #getManagerClassName}, returning the
 * appropriate place controller and manager class for that place.
 */
public abstract class PlaceConfig extends SimpleStreamableObject
{
    /**
     * Returns the class that should be used to create a controller for
     * this place. The controller class must derive from {@link
     * PlaceController}.
     */
    public abstract Class getControllerClass ();

    /**
     * Returns the name of the class that should be used to create a
     * manager for this place. The manager class must derive from {@link
     * com.threerings.crowd.server.PlaceManager}. <em>Note:</em> this
     * method differs from {@link #getControllerClass} because we want to
     * avoid compile time linkage of the place config object (which is
     * used on the client) to server code. This allows a code optimizer
     * (DashO Pro, for example) to remove the server code from the client,
     * knowing that it is never used.
     */
    public abstract String getManagerClassName ();
}

@@ -29,29 +29,29 @@
 v 1.
-4
+5
  200
-2/07/23 05:54:52
+3/02/11 06:00:51
  mdb
@@ -94,16 +94,56 @@
 .data;%0A%0A
+import com.samskivert.util.StringUtil;%0A%0A
 import c
@@ -1817,11 +1817,226 @@
 Name ();
+%0A%0A    // documentation inherited%0A    protected void toString (StringBuffer buf)%0A    %7B%0A        buf.append(%22type=%22).append(StringUtil.shortClassName(this));%0A        buf.append(%22, %22);%0A        super.toString(buf);%0A    %7D
 %0A%7D%0A

Include our class name in toString().