Share a single MethodFinder between all instances of a subclass of PlaceManager as they can be large enough constitute the bulk of a PlaceManager

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5029 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Charlie Groves
2008-04-29 18:07:04 +00:00
parent f6e95780f5
commit 938d7f5994
2 changed files with 41 additions and 17 deletions
@@ -42,9 +42,18 @@ public class DynamicListener
* target.
*/
public DynamicListener (Object target)
{
this(target, new MethodFinder(target.getClass()));
}
/**
* Creates a listener that dynamically dispatches events on the supplied
* target using the methods in finder.
*/
public DynamicListener (Object target, MethodFinder finder)
{
_target = target;
_finder = new MethodFinder(target.getClass());
_finder = finder;
}
// from interface AttributeChangeListener