Closed
Bug 977171
Opened 10 years ago
Closed 6 years ago
Add generic interface logger
Categories
(Firefox for Android Graveyard :: General, defect)
Tracking
(Not tracked)
RESOLVED
INACTIVE
People
(Reporter: jchen, Assigned: jchen)
Details
Attachments
(4 files)
7.11 KB,
patch
|
Details | Diff | Splinter Review | |
8.62 KB,
patch
|
Details | Diff | Splinter Review | |
5.95 KB,
patch
|
Details | Diff | Splinter Review | |
2.97 KB,
patch
|
Details | Diff | Splinter Review |
While working on bug 971355, I wrote a class (org.mozilla.gecko.utils.LoggingInterface) that will take an object and return a proxy that logs all calls made on interfaces implemented by that object. For example, this is very useful for debugging IME code; give the proxy a GeckoInputConnection object, and it will log all calls made on the InputConnection interface. I'm sure it can be useful for other cases, too.
Assignee | ||
Comment 1•10 years ago
|
||
LoggingInterface has a create static method that will return a logging proxy. For example,
> Foo foo = new Foo();
> IFoo proxy = (IFoo) LoggingInterface.create(foo);
Now all calls through |proxy| will be logged.
Assignee | ||
Comment 2•10 years ago
|
||
Several utility methods in GeckoEditable are now in LoggingInterface
Assignee | ||
Comment 3•10 years ago
|
||
LoggingInterface replaces the custom DebugGeckoInputConnection class that we had before.
Assignee | ||
Comment 4•10 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → INACTIVE
Updated•3 years ago
|
Product: Firefox for Android → Firefox for Android Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•