Re: [Simple-support] problem with initial load time
Brought to you by:
niallg
|
From: Aaron D. <di...@he...> - 2014-01-29 22:29:37
|
Am 11.12.2013 10:43, schrieb Tomáš Procházka:
> I have something like this
>
> @ElementUnion({
> @Element(name="ExportTransportCompanyRequest_1",
> type=ExportTransportCompanyRequest.class),
> [...]
> @Element(name="CreateCustomerTokenRequest_1", type =
> CreateCustomerTokenRequest.class)
> })
>
> In the request object and the some in response object.
> And it looks that library process all classes and it's annotations
> during first call. Is this necessary?
How do you know this?
Is it really SimpleXml that processes the classes or is it simply the
Java classloader loading all necessary classes?
Java can't do lazy loading of some annotations; if you access the outer
@ElementUnion annotation, then everything inside is materialized.
If that's a problem for you, you can't use unions.
Regards
--
Aaron "Optimizer" Digulla a.k.a. Philmann Dark
"It's not the universe that's limited, it's our imagination.
Follow me and I'll show you something beyond the limits."
http://blog.pdark.de/
|