espeed
espeed

Reputation: 4824

How do you import in Clojure nested Java classes that are in separate files?

For example SearcherServer and SearcherClient are in separate files:

https://github.com/linkedin/indextank-engine/tree/master/src/main/java/com/flaptor/indextank/rpc

And in Java, SearcherClient is used within its main method like this:

Searcher.Client client = new Searcher.Client(protocol);

https://github.com/linkedin/indextank-engine/blob/master/src/main/java/com/flaptor/indextank/rpc/SearcherClient.java#L106

Upvotes: 2

Views: 234

Answers (1)

Andrew
Andrew

Reputation: 7516

You can refer to Searcher.Client as com.flaptor.indextank.rpc.Searcher$Client.

Client isn't in a separate file from Searcher: they're both in the auto generated class Searcher.java here.

Upvotes: 3

Related Questions