Jamie Doornbos
97e91dbb84
Restored the old setCommandGenerator function for the test client, it was accidentally blown away when timeouts got added
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5269 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-07-28 17:28:44 +00:00
Dave Hoover
8a8b615f9d
Clean up some warnings I'm getting in super-pedantic mode.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5268 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-07-28 17:23:07 +00:00
Michael Bayne
93fb7b01f7
Fixed some unused variables, unused imports, type variable hiding, tricky
...
generic array type handling and other niggling bits.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5267 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-07-26 20:40:20 +00:00
Jamie Doornbos
4fab6bb71a
Reset a bureau if its launcher does not connect back in a timely fashion
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5266 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-07-25 22:58:03 +00:00
Jamie Doornbos
4a5f474183
Tidied up registry log message, line lengths and use of static final int instead of an enum
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5265 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-07-25 22:15:56 +00:00
Jamie Doornbos
551326910c
Bureau registry doesn't need to listen for client object death now that it listens for the end of a session. This was causing a warning in the log when the bureau was not found on the second call to clientDestroyed
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5262 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-07-24 21:01:00 +00:00
Jamie Doornbos
2b3b5411cc
Removed deprecated way of initializing the bureau registry client factory
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5260 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-07-24 04:55:10 +00:00
Michael Bayne
4a9265410a
Inject dependencies into delegates supplied to PlaceRegistry.createPlace().
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5258 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-07-23 12:15:52 +00:00
Dave Hoover
f2eeab0581
Truth in commenting.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5257 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-07-22 23:12:55 +00:00
Michael Bayne
dde4e4bfdf
Presents supports streaming lists natively now, so just use an array list.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5254 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-07-22 15:06:36 +00:00
Michael Bayne
0a893e1de1
ZOMG, Narya now perfectly passes our coding standards as enforced by
...
CheckStyle. The checks are slightly looser than I'd like but way better than
nothing and we get a bunch of other useful warnings like shadowed names and
other handy bits.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5253 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-07-22 14:36:54 +00:00
Michael Bayne
5c4ab96880
Styley stylopolis.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5252 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-07-22 14:01:51 +00:00
Michael Bayne
706b85a0e4
Regenerated with new code that properly simplifies generic type arguments.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5251 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-07-22 13:48:37 +00:00
Michael Bayne
e1ca08dde8
Simplified (and improved) name simplification.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5250 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-07-22 13:48:10 +00:00
Michael Bayne
67ce73b61d
More style cleanup.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5249 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-07-22 13:39:42 +00:00
Michael Bayne
c743432676
More style changes.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5248 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-07-22 13:02:13 +00:00
Michael Bayne
09f8a25876
More style-related cleanup.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5247 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-07-22 12:51:17 +00:00
Michael Bayne
0aa0e48c28
The provider needs to import the service for all of our javadoc to work. If
...
Eclipse doesn't know about javadoc, we should file a bug.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5246 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-07-22 12:50:15 +00:00
Michael Bayne
85b26867e3
Put this all on one line to avoid weird whitespace.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5245 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-07-22 12:48:57 +00:00
Michael Bayne
219ab38b77
Widening; nixed import of receiver as it's not needed.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5244 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-07-22 12:33:37 +00:00
Dave Hoover
bd285bafc7
Teach that switch statement about all values for that enum.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5243 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-07-21 18:24:04 +00:00
Michael Bayne
d01715a369
More style fixes.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5242 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-07-19 09:50:20 +00:00
Dave Hoover
6b1d65553f
And finally, narya gets the imports/overrides/regen love.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5241 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-07-18 23:20:17 +00:00
Michael Bayne
e41dda3018
Style fixes and import pruning. Beware, CheckStyle is (finally) coming to town.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5240 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-07-18 18:32:59 +00:00
Jamie Doornbos
805372caf3
Support bureau death
...
* New static method to extract a bureau id from a username
* Inject the client manager in the registry and tack all bureau sessions
* Listen for sessions ending and call the clientDestroyed method
* Actually clear our the agents and remove the bureau from the map when the client is destroyed (this will trigger a new launch for the next agent request in that bureau)
* Deprecate addClientFactory
* Added lookup function to retrieve a bureau session by bureau id so that client code will be able to kill specific bureau sessions
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5238 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-07-18 00:06:06 +00:00
Ray Greenwell
8a72343130
Copy mthomas' r5236 change to the actionscript side.
...
How was this not a problem before? Maybe we just got lucky
on yohoho and never had an npp say something with filterable
words in the translation key.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5237 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-07-17 23:00:29 +00:00
Mike Thomas
e114e90a05
We need to ensure our message has been translated before we try to filter it. Otherwise when a NPP says something where the key contains a word filtered in a particular language, the system doesn't find the key, and everyone gets really confused. (Was not a problem before because we normally filter using word breaks... but not all languages use such things as spaces.)
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5236 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-07-17 18:17:27 +00:00
Dave Hoover
1578adceb1
Unless I'm missing something, those bits of generated code don't need those extra imports.
...
I've rerun the code generators without those in vilya & yohoho and everything seems happy,
so let's give it a whirl.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5225 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-07-10 18:39:29 +00:00
Michael Bayne
531f0c9ffe
On second thought, let's just type our delegate operations and only apply them
...
to delegates that can handle them. Turns out we already even had this option in
the PlaceController.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5224 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-07-10 13:36:52 +00:00
Michael Bayne
950fb6c4aa
Detect programmer error in delegate usage as early as possible and fail.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5223 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-07-10 13:19:21 +00:00
Jamie Doornbos
8f9c7e7117
BureauClientFactory class to make client resolution more intuitive, plus a registry method to install the factory
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5221 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-07-03 20:31:37 +00:00
Dave Hoover
ab9ca71450
A smattering more unicodification
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5220 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-07-03 19:45:07 +00:00
Dave Hoover
fc34343f3c
Make CurseFilter work on codepoints, not characters, when capitalizing the
...
beginning of words in those times when 2 bytes just aren't enough for a letter.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5219 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-07-03 18:03:14 +00:00
Jamie Doornbos
8ce8e69b59
Changed BureauRegistry to use Launcher and updated bureau tests
...
* Moved the thane-specific TestClientMain out into src/thane and renamed
BureauTestClient
* Removed server name and port from the registry init and from the Launcher/
CommandGenerator parameters. These can be inserted by the caller
* Converted all the asc junk to compc/mxmlc the same as msoy does it
* Moved the test client main function into src/as land
* Added extdeps.suffix alternative approach since tests/build.xml does not
get launched from nifty ooo-libs container
* Fixed bureau test targets
* Moved avmthane to overridable property and corrected out of date default
* Converted BureauRegistry code to deal with Launcher objects and added shim
to preserve use of CommandGenerator
* Fixed narya build to remove thane-config.xml after building aslib
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5218 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-07-02 23:44:11 +00:00
Jamie Doornbos
ffeb20b2c7
Removed hiding member variable
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5217 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-07-02 23:24:45 +00:00
Michael Bayne
2cfb546015
Nix our legacy static references as we have those in our leaf projects now.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5214 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-06-30 14:33:06 +00:00
Michael Bayne
5b5d39601b
Added requireEventThread and refuseEventThread.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5213 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-06-30 11:36:17 +00:00
Michael Bayne
6a9723fb11
Extract BodyObject location into a separate service that can be customized by
...
extending systems and depended upon by services that need to lookup bodies.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5212 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-06-29 14:11:42 +00:00
Michael Bayne
f043a81ee4
Maps cleanup; inject dependencies into NodeAction instances.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5211 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-06-29 14:09:54 +00:00
Michael Bayne
07b6aa9446
Inject the bureau registry.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5210 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-06-29 13:09:03 +00:00
Michael Bayne
556c9024b8
Nixed unused imports.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5209 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-06-29 12:44:57 +00:00
Michael Bayne
d1143a2483
Make the NodeRepository injectable.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5208 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-06-29 12:44:28 +00:00
Michael Bayne
bbedec28ea
Regened services.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5207 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-06-29 12:44:04 +00:00
Michael Bayne
34439e3461
Unixed import nixage, service regen, some dependency injection.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5205 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-06-29 12:42:06 +00:00
Michael Bayne
733ec9e5ab
Unused import nixage.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5204 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-06-29 12:38:24 +00:00
Michael Bayne
2a598b49af
Nix unused imports, regen services.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5203 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-06-29 12:37:32 +00:00
Michael Bayne
09722edcd7
Nix some unused imports.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5202 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-06-29 12:37:06 +00:00
Michael Bayne
8d6635e8e0
Type the marshaller and associated registry methods so that we don't have to
...
downcast every time we register an invocation service provider.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5201 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-06-29 12:36:21 +00:00
Michael Bayne
d9cdb5ae3b
Move this up with its public friends.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5200 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-06-29 11:22:58 +00:00
Michael Bayne
740cd4c76a
Use Maps.
...
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5199 542714f4-19e9-0310-aa3c-eee0fc999fb1
2008-06-29 11:10:05 +00:00