Christophe Grand <[email protected]> writes:
Hi Christophe,
>> Ok, so now I can start a swank server from Java and can connect to it
>> using SLIME. But now comes the next problem: How do I access the
>> objects of the running java app?
>>
>> Basically all our apps operate on a graph, and that's what I'd like
>> to have accessible from clojure. So I want something like that:
>>
>> ...
>> Graph g = GraphIO.loadGraphFromFile("foo.tg");
>> defInClojure("graph", g);
>> ...
>>
>
> You can put your g object in a static field and access this static field
> from Clojure
I'd prefer not to introduce new fields inside the java app.
> or define a var: clojure.lang.RT.var("my-namespace", "my-varname", g)
Perfect, exactly what I need. Thanks a ton!
Bye,
Tassilo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---