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_SCHEME
Scheme for modelprotected static Pattern
__SOURCE_PATTERN
The regexp for a protocolprotected SkinModelsManager
_skinModelsManager
The 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 Source
getSource(String location, Map parameters)
protected void
initializeComponents()
LookupSkinModelsManager
for lazy initialization.void
release(Source source)
void
service(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
-
-
Constructor Detail
-
ModelSourceFactory
public ModelSourceFactory()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
initializeComponents
protected void initializeComponents()
LookupSkinModelsManager
for lazy initialization.
-
getSource
public Source getSource(String location, Map parameters) throws IOException
- Specified by:
getSource
in interfaceSourceFactory
- Throws:
IOException
-
release
public void release(Source source)
- Specified by:
release
in interfaceSourceFactory
-
-