CapabilityLoader
-
- Posts: 294
- Joined: Mon Jun 20, 2011 5:04 pm
CapabilityLoader
What's the function of CapabilityLoader?
-
- Posts: 294
- Joined: Mon Jun 20, 2011 5:04 pm
Re: CapabilityLoader
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.
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