org.jboss.kernel.plugins.dependency
Class CollectionCreatorCallbackItem<T extends Collection<Object>>

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.dependency.plugins.AbstractCallbackItem<T>
          extended by org.jboss.dependency.plugins.OwnerCallbackItem<Class<?>,InvokeDispatchContext>
              extended by org.jboss.kernel.plugins.dependency.CollectionCallbackItem<T>
                  extended by org.jboss.kernel.plugins.dependency.CollectionCreatorCallbackItem<T>
Type Parameters:
T - expected collection type
All Implemented Interfaces:
Cloneable, CallbackItem<Class<?>>, org.jboss.util.JBossInterface
Direct Known Subclasses:
ListCallbackItem, QueueCallbackItem, SetCallbackItem

public abstract class CollectionCreatorCallbackItem<T extends Collection<Object>>
extends CollectionCallbackItem<T>

Collection callback item using CollectionCreator.

Author:
Ales Justin

Field Summary
protected  CollectionCreator<T> creator
           
 
Fields inherited from class org.jboss.kernel.plugins.dependency.CollectionCallbackItem
attribute, cardinality
 
Fields inherited from class org.jboss.dependency.plugins.OwnerCallbackItem
owner
 
Fields inherited from class org.jboss.dependency.plugins.AbstractCallbackItem
attributeName, dependentState, name, whenRequired
 
Fields inherited from class org.jboss.util.JBossObject
hashCode, log, toString
 
Constructor Summary
CollectionCreatorCallbackItem(CollectionCreator<T> creator, Class<?> name, ControllerState whenRequired, ControllerState dependentState, Cardinality cardinality, InvokeDispatchContext context, AttributeInfo attribute)
           
CollectionCreatorCallbackItem(CollectionCreator<T> creator, Class<?> name, InvokeDispatchContext owner, AttributeInfo attribute)
           
 
Method Summary
protected  T getCollectionParameterHolder()
          Create new collection impl instance - HashSet, ArrayList, ...
 
Methods inherited from class org.jboss.kernel.plugins.dependency.CollectionCallbackItem
changeCallback, createDependencyItem, execute, fillHolder, ownerCallback, removeUninstallingContext
 
Methods inherited from class org.jboss.dependency.plugins.OwnerCallbackItem
addDependency, toString
 
Methods inherited from class org.jboss.dependency.plugins.AbstractCallbackItem
changeCallback, getAttributeName, getDependentState, getIDependOn, getWhenRequired, toShortString
 
Methods inherited from class org.jboss.util.JBossObject
cacheGetHashCode, cacheToString, clone, equals, flushJBossObjectCache, getClassShortName, getHashCode, hashCode, list, notEqual, toShortString, toString, toStringImplementation
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

creator

protected CollectionCreator<T extends Collection<Object>> creator
Constructor Detail

CollectionCreatorCallbackItem

public CollectionCreatorCallbackItem(CollectionCreator<T> creator,
                                     Class<?> name,
                                     InvokeDispatchContext owner,
                                     AttributeInfo attribute)

CollectionCreatorCallbackItem

public CollectionCreatorCallbackItem(CollectionCreator<T> creator,
                                     Class<?> name,
                                     ControllerState whenRequired,
                                     ControllerState dependentState,
                                     Cardinality cardinality,
                                     InvokeDispatchContext context,
                                     AttributeInfo attribute)
Method Detail

getCollectionParameterHolder

protected T getCollectionParameterHolder()
Description copied from class: CollectionCallbackItem
Create new collection impl instance - HashSet, ArrayList, ...

Specified by:
getCollectionParameterHolder in class CollectionCallbackItem<T extends Collection<Object>>
Returns:
new collection impl instance


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.