de.uplanet.lucy.server.auxiliaries.collections
Class CollectionFactory

java.lang.Object
  extended by de.uplanet.lucy.server.auxiliaries.collections.CollectionFactory

@VelocityCallable(value="singleton")
public class CollectionFactory
extends java.lang.Object

Used to create collections.

Version:
$Revision: 64100 $

Constructor Summary
CollectionFactory()
           
 
Method Summary
 java.util.List<java.lang.Object> createList()
           
 java.util.List<?> createList(java.lang.String p_strClassName)
           
 java.util.Map<java.lang.Object,java.lang.Object> createMap()
           
 java.util.Map<?,?> createMap(java.lang.String p_strClassName)
           
 java.util.Set<java.lang.Object> createSet()
           
 java.util.Set<?> createSet(java.lang.String p_strClassName)
           
 java.util.Collection<?> getProperties(java.util.Collection<?> p_collection, java.lang.String p_strMethodName)
          Create a collection of object properties from a collection of objects.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectionFactory

public CollectionFactory()
Method Detail

createMap

public java.util.Map<java.lang.Object,java.lang.Object> createMap()

createMap

public java.util.Map<?,?> createMap(java.lang.String p_strClassName)

createSet

public java.util.Set<java.lang.Object> createSet()

createSet

public java.util.Set<?> createSet(java.lang.String p_strClassName)

createList

public java.util.List<java.lang.Object> createList()

createList

public java.util.List<?> createList(java.lang.String p_strClassName)

getProperties

public java.util.Collection<?> getProperties(java.util.Collection<?> p_collection,
                                             java.lang.String p_strMethodName)
                                      throws java.lang.Exception
Create a collection of object properties from a collection of objects.

Parameters:
p_collection - The object collection.
p_strMethodName - The method that returns the properties that will be in the resultant collection.
Returns:
The collection of properties.
Throws:
java.lang.Exception - - If an erroro occurred.


Last updated: 2011-01-27
Copyright 2000-2010 United Planet. All Rights Reserved.