net.sourceforge.wurfl.core
Class CustomWURFLHolder

java.lang.Object
  extended by net.sourceforge.wurfl.core.CustomWURFLHolder
All Implemented Interfaces:
ResourcePaths, WURFLHolder

public class CustomWURFLHolder
extends Object
implements WURFLHolder, ResourcePaths

Custom WURFLHolder implementation.

It permits to initialize WURFLHolder by path, File or WURFLResource.

Version:
$Id: CustomWURFLHolder.java 934 2012-03-27 13:34:26Z fulvio.crivellaro $

Field Summary
 
Fields inherited from interface net.sourceforge.wurfl.core.resource.ResourcePaths
CATCH_ALL_RECOVERY_FILE, WURFL_CONFIG_FILE
 
Constructor Summary
CustomWURFLHolder(File rootFile)
           
CustomWURFLHolder(File rootFile, File[] patchesFile)
           
CustomWURFLHolder(String rootPath)
           
CustomWURFLHolder(String rootPath, String[] patchesPath)
           
CustomWURFLHolder(WURFLModel model, MatcherManager mm, DeviceProvider dp, WURFLService service)
          Preferred Spring ctor
CustomWURFLHolder(WURFLResource root)
           
CustomWURFLHolder(WURFLResource root, WURFLResource... patches)
           
CustomWURFLHolder(WURFLResource root, WURFLResources patches)
           
 
Method Summary
protected  void createDelegate(WURFLManager manager, WURFLUtils utils)
          Create WURFLHolder delegate from WURFLManager and URFLUtils.
 WURFLManager getWURFLManager()
          Return WURFLManager instance.
 WURFLUtils getWURFLUtils()
          Return WURFLUtils instances.
protected  void init()
          This method build the WURFLManager instance using default implementations of all required interfaces.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomWURFLHolder

public CustomWURFLHolder(WURFLModel model,
                         MatcherManager mm,
                         DeviceProvider dp,
                         WURFLService service)
Preferred Spring ctor

Parameters:
model -
mm -

CustomWURFLHolder

public CustomWURFLHolder(WURFLResource root,
                         WURFLResource... patches)
Parameters:
root -
patches -

CustomWURFLHolder

public CustomWURFLHolder(WURFLResource root,
                         WURFLResources patches)
Parameters:
root -
patches -

CustomWURFLHolder

public CustomWURFLHolder(WURFLResource root)
Parameters:
root -

CustomWURFLHolder

public CustomWURFLHolder(String rootPath,
                         String[] patchesPath)
Parameters:
rootPath -
patchesPath -

CustomWURFLHolder

public CustomWURFLHolder(String rootPath)
Parameters:
rootPath -

CustomWURFLHolder

public CustomWURFLHolder(File rootFile,
                         File[] patchesFile)
Parameters:
rootFile -
patchesFile -

CustomWURFLHolder

public CustomWURFLHolder(File rootFile)
Parameters:
rootFile -
Method Detail

init

protected void init()
This method build the WURFLManager instance using default implementations of all required interfaces.


createDelegate

protected void createDelegate(WURFLManager manager,
                              WURFLUtils utils)
Create WURFLHolder delegate from WURFLManager and URFLUtils.

Parameters:
manager - The WURFLManager associated with delegate.
utils - The WURFLUtils associated with delegate.

getWURFLManager

public WURFLManager getWURFLManager()
Description copied from interface: WURFLHolder
Return WURFLManager instance.

Specified by:
getWURFLManager in interface WURFLHolder
Returns:
a WURFLManager instance.

getWURFLUtils

public WURFLUtils getWURFLUtils()
Description copied from interface: WURFLHolder
Return WURFLUtils instances.

Specified by:
getWURFLUtils in interface WURFLHolder
Returns:
A WURFLUtils instance.


Copyright © 2012 ScientiaMobile Inc.. All Rights Reserved.