Make it possible for external entities to add delegates.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3301 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2005-01-14 17:06:23 +00:00
parent b295fb2630
commit 93ef73095e
@@ -210,6 +210,17 @@ public class PlaceManager
});
}
/**
* Adds the supplied delegate to the list for this manager.
*/
public void addDelegate (PlaceManagerDelegate delegate)
{
if (_delegates == null) {
_delegates = new ArrayList();
}
_delegates.add(delegate);
}
/**
* Provides an opportunity for place managers to ratify the creation
* of a place based on whatever criterion they may require (based on
@@ -624,17 +635,6 @@ public class PlaceManager
buf.append(", config=").append(_config);
}
/**
* Adds the supplied delegate to the list for this manager.
*/
protected void addDelegate (PlaceManagerDelegate delegate)
{
if (_delegates == null) {
_delegates = new ArrayList();
}
_delegates.add(delegate);
}
/**
* Used to call methods in delegates.
*/