CapabilityLoader

sm_support2
Posts: 294
Joined: Mon Jun 20, 2011 5:04 pm

CapabilityLoader

Postby sm_support2 » Fri Jun 24, 2011 1:21 pm

What's the function of CapabilityLoader?

sm_support2
Posts: 294
Joined: Mon Jun 20, 2011 5:04 pm

Re: CapabilityLoader

Postby sm_support2 » Fri Jun 24, 2011 1:25 pm

CapabilityLoader mantains all the capabilities for a single device.

The Wurfl API provides two implementations of CapabilityLoader :

HierarchyCapabilityLoader and DefaultCapabilityLoader(the default).

HierarchyCapabilityLoader is fast for single capability requests (device.capability(foo)), but not for loading the entiry capability tree, for example in a jsp.

DefaultCapabilityLoader is built to request all capabilities, but it is not suitable for introspection-based projects, it consumes much more heap, at least 1024 MB.

You can select a specific CapabilityLoader by injecting it through Spring configuration.


Who is online

Users browsing this forum: No registered users and 0 guests