org.springframework.mobile.device.wurfl
Class WurflManagerFactoryBean
java.lang.Object
org.springframework.mobile.device.wurfl.WurflManagerFactoryBean
- All Implemented Interfaces:
- FactoryBean<net.sourceforge.wurfl.core.WURFLManager>, InitializingBean
public class WurflManagerFactoryBean
- extends java.lang.Object
- implements FactoryBean<net.sourceforge.wurfl.core.WURFLManager>, InitializingBean
Factory that constructs the central WURFLManager and exports it as a Spring bean that can be injected into other beans.
The specifics of this factory class are hidden when working with the wurfl-device-resolver tag in the spring-mobile-device XML namespace.
|
Constructor Summary |
WurflManagerFactoryBean(Resource rootLocation)
Constructs a WurflManagerFactoryBean that loads the root Device model from the XML file at the specified resource path. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WurflManagerFactoryBean
public WurflManagerFactoryBean(Resource rootLocation)
- Constructs a WurflManagerFactoryBean that loads the root Device model from the XML file at the specified resource path.
The specified resource must be resolvable to a file on the filesystem.
- Parameters:
rootLocation - the path to the root device model XML file
setPatchLocations
public void setPatchLocations(java.util.List<? extends Resource> patchLocations)
- Set additional resource paths for patches that should be applied atop the root model.
If not set, no patches will be applied.
The specified resources must be resolvable to files on the filesystem.
- Parameters:
patchLocations - the XML-based patch resources to apply
afterPropertiesSet
public void afterPropertiesSet()
throws java.lang.Exception
- Specified by:
afterPropertiesSet in interface InitializingBean
- Throws:
java.lang.Exception
getObjectType
public java.lang.Class<?> getObjectType()
- Specified by:
getObjectType in interface FactoryBean<net.sourceforge.wurfl.core.WURFLManager>
getObject
public net.sourceforge.wurfl.core.WURFLManager getObject()
throws java.lang.Exception
- Specified by:
getObject in interface FactoryBean<net.sourceforge.wurfl.core.WURFLManager>
- Throws:
java.lang.Exception
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton in interface FactoryBean<net.sourceforge.wurfl.core.WURFLManager>