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:
@@ -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
|
* Provides an opportunity for place managers to ratify the creation
|
||||||
* of a place based on whatever criterion they may require (based on
|
* of a place based on whatever criterion they may require (based on
|
||||||
@@ -624,17 +635,6 @@ public class PlaceManager
|
|||||||
buf.append(", config=").append(_config);
|
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.
|
* Used to call methods in delegates.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user