org.apache.portals.graffito.jcr.persistence.collectionconverter
Class ManageableCollectionUtil

java.lang.Object
  extended by org.apache.portals.graffito.jcr.persistence.collectionconverter.ManageableCollectionUtil

public class ManageableCollectionUtil
extends java.lang.Object

Utility class used to instantiate ManageableCollection

Author:
Christophe Lombart

Constructor Summary
ManageableCollectionUtil()
           
 
Method Summary
static ManageableCollection getManageableCollection(java.lang.Class collectionClass)
          Instantiate a new ManageableCollection
static ManageableCollection getManageableCollection(java.lang.Object object)
          Convert a java Collection object into a ManageableCollection.
static ManageableCollection getManageableCollection(java.lang.String manageableCollectionClassName)
          Instantiate a new ManageableCollection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ManageableCollectionUtil

public ManageableCollectionUtil()
Method Detail

getManageableCollection

public static ManageableCollection getManageableCollection(java.lang.String manageableCollectionClassName)
Instantiate a new ManageableCollection

Parameters:
manageableCollectionClassName - The manageable collection class name
Returns:
an emtpy created ManageableCollection

getManageableCollection

public static ManageableCollection getManageableCollection(java.lang.Class collectionClass)
Instantiate a new ManageableCollection

Parameters:
collectionClass - the collection class name
Returns:
an emtpy created ManageableCollection

getManageableCollection

public static ManageableCollection getManageableCollection(java.lang.Object object)
Convert a java Collection object into a ManageableCollection. Until now, only the following class are supported : Collection, List, ArrayList, Vector If you need a Map, you have to write your own ManageableCollection.

Parameters:
object - the java collection or Map
Returns:
The converted ManageableCollection


Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.