net.sf.mmm.util.collection.api
Interface CollectionFactoryManager

All Known Implementing Classes:
CollectionFactoryManagerImpl

@ComponentSpecification
public interface CollectionFactoryManager

This is the interface for a manager of CollectionFactory instances.

Since:
1.0.1
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)

Method Summary
<COLLECTION extends Collection>
CollectionFactory<COLLECTION>
getCollectionFactory(Class<COLLECTION> collectionType)
          This method gets the CollectionFactory for the given collectionType.
<MAP extends Map>
MapFactory
getMapFactory(Class<MAP> mapType)
          This method gets the MapFactory for the given mapType.
 

Method Detail

getMapFactory

<MAP extends Map> MapFactory getMapFactory(Class<MAP> mapType)
This method gets the MapFactory for the given mapType.

Type Parameters:
MAP - is the generic type of the Map.
Parameters:
mapType - is the type of the Map. This should be the interface such as Map.class or SortedMap.class.
Returns:
the MapFactory for the given mapType. The mapType has to be assignable from MapFactory.getMapInterface() of the returned instance. Typically it will be equal.

getCollectionFactory

<COLLECTION extends Collection> CollectionFactory<COLLECTION> getCollectionFactory(Class<COLLECTION> collectionType)
This method gets the CollectionFactory for the given collectionType.

Type Parameters:
COLLECTION - is the generic type of the Collection.
Parameters:
collectionType - is the type of the Collection. This should be the Collection interface such as List.class.
Returns:
the CollectionFactory for the given collectionType. The collectionType has to be assignable from CollectionFactory.getCollectionInterface() of the returned instance. Typically it will be equal.


Copyright © 2001-2010 mmm-Team. All Rights Reserved.