Package org.ametys.web.source
Class ModelSourceFactory
- java.lang.Object
 - 
- org.ametys.runtime.plugin.component.AbstractLogEnabled
 - 
- org.ametys.web.source.ModelSourceFactory
 
 
 
- 
- All Implemented Interfaces:
 LogEnabled,Component,Serviceable,SourceFactory
public class ModelSourceFactory extends AbstractLogEnabled implements SourceFactory, Serviceable
Resolve the protocol model:// seeking file in models/ 
- 
- 
Field Summary
Fields Modifier and Type Field Description protected static String__MODEL_SCHEMEScheme for modelprotected static Pattern__SOURCE_PATTERNThe regexp for a protocolprivate ServiceManager_managerprotected SkinModelsManager_skinModelsManagerThe skins manager- 
Fields inherited from interface org.apache.excalibur.source.SourceFactory
ROLE 
 - 
 
- 
Constructor Summary
Constructors Constructor Description ModelSourceFactory() 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SourcegetSource(String location, Map parameters)protected voidinitializeComponents()LookupSkinModelsManagerfor lazy initialization.voidrelease(Source source)voidservice(ServiceManager manager)- 
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger 
 - 
 
 - 
 
- 
- 
Field Detail
- 
__SOURCE_PATTERN
protected static final Pattern __SOURCE_PATTERN
The regexp for a protocol 
- 
__MODEL_SCHEME
protected static final String __MODEL_SCHEME
Scheme for model- See Also:
 - Constant Field Values
 
 
- 
_skinModelsManager
protected SkinModelsManager _skinModelsManager
The skins manager 
- 
_manager
private ServiceManager _manager
 
 - 
 
- 
Constructor Detail
- 
ModelSourceFactory
public ModelSourceFactory()
 
 - 
 
- 
Method Detail
- 
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
 servicein interfaceServiceable- Throws:
 ServiceException
 
- 
initializeComponents
protected void initializeComponents()
LookupSkinModelsManagerfor lazy initialization. 
- 
getSource
public Source getSource(String location, Map parameters) throws IOException
- Specified by:
 getSourcein interfaceSourceFactory- Throws:
 IOException
 
- 
release
public void release(Source source)
- Specified by:
 releasein interfaceSourceFactory
 
 - 
 
 -