ro.isdc.wro.config.metadata
Class DefaultMetaDataFactory

java.lang.Object
  extended by 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

Constructor Summary
DefaultMetaDataFactory()
          Creates a factory with empty metadata map.
DefaultMetaDataFactory(Map<String,Object> metadata)
          Creates a factory which holds the provided map as metadata storage.
 
Method Summary
 Map<String,Object> create()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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.