ro.isdc.wro.config.metadata
Class DefaultMetaDataFactory
java.lang.Object
ro.isdc.wro.config.metadata.DefaultMetaDataFactory
- All Implemented Interfaces:
- MetaDataFactory, ObjectFactory<Map<String,Object>>
public class DefaultMetaDataFactory
- extends Object
- implements MetaDataFactory
Default implementation of MetaDataFactory
which returns always a map created during construction.
- Since:
- 1.6.0
- Author:
- Alex Objelean
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultMetaDataFactory
public DefaultMetaDataFactory()
- Creates a factory with empty metadata map.
DefaultMetaDataFactory
public DefaultMetaDataFactory(Map<String,Object> metadata)
- Creates a factory which holds the provided map as metadata storage.
- Parameters:
metadata
- a not null map of metadata.
create
public Map<String,Object> create()
- Specified by:
create
in interface ObjectFactory<Map<String,Object>>
- Returns:
- the unmodifiable version of the metadata.
Copyright © 2008-2013. All Rights Reserved.