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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user