org.jboss.kernel.plugins.dependency
Class BasicCollectionCallbackItemFactory

java.lang.Object
  extended by org.jboss.kernel.plugins.dependency.BasicCollectionCallbackItemFactory
All Implemented Interfaces:
CollectionCallbackItemFactory

public class BasicCollectionCallbackItemFactory
extends Object
implements CollectionCallbackItemFactory

Basic collection callback item factory.

Author:
Ales Justin

Constructor Summary
BasicCollectionCallbackItemFactory()
           
 
Method Summary
 CollectionCallbackItem createCollectionCallbackItem(Class<? extends Collection> parameterClass, Class name, org.jboss.dependency.spi.ControllerState whenRequired, org.jboss.dependency.spi.ControllerState dependentState, org.jboss.dependency.spi.Cardinality cardinality, org.jboss.dependency.spi.dispatch.InvokeDispatchContext context, AttributeInfo attribute)
          Create collection callback item for parameter class.
 CollectionCallbackItem createCollectionCallbackItem(Class<? extends Collection> parameterClass, Class name, org.jboss.dependency.spi.dispatch.InvokeDispatchContext context, AttributeInfo attribute)
          Create collection callback item for parameter class.
protected  CollectionCallbackItem handleAdditionalCollectionClass(Class<? extends Collection> parameterClass, Class name, org.jboss.dependency.spi.ControllerState whenRequired, org.jboss.dependency.spi.ControllerState dependentState, org.jboss.dependency.spi.Cardinality cardinality, org.jboss.dependency.spi.dispatch.InvokeDispatchContext context, AttributeInfo attribute)
          Override for additional handling of collection callback item creaton via parameter class.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicCollectionCallbackItemFactory

public BasicCollectionCallbackItemFactory()
Method Detail

createCollectionCallbackItem

public CollectionCallbackItem createCollectionCallbackItem(Class<? extends Collection> parameterClass,
                                                           Class name,
                                                           org.jboss.dependency.spi.dispatch.InvokeDispatchContext context,
                                                           AttributeInfo attribute)
Description copied from interface: CollectionCallbackItemFactory
Create collection callback item for parameter class.

Specified by:
createCollectionCallbackItem in interface CollectionCallbackItemFactory
Parameters:
parameterClass - actual collection class
name - demand name
context - invoke owner
attribute - the attribute
Returns:
new exact collection callback item

createCollectionCallbackItem

public CollectionCallbackItem createCollectionCallbackItem(Class<? extends Collection> parameterClass,
                                                           Class name,
                                                           org.jboss.dependency.spi.ControllerState whenRequired,
                                                           org.jboss.dependency.spi.ControllerState dependentState,
                                                           org.jboss.dependency.spi.Cardinality cardinality,
                                                           org.jboss.dependency.spi.dispatch.InvokeDispatchContext context,
                                                           AttributeInfo attribute)
Description copied from interface: CollectionCallbackItemFactory
Create collection callback item for parameter class.

Specified by:
createCollectionCallbackItem in interface CollectionCallbackItemFactory
Parameters:
parameterClass - actual collection class
name - demand name
whenRequired - when required state
dependentState - dependent state
cardinality - the cardinality
context - invoke owner
attribute - the attribute
Returns:
new exact collection callback item

handleAdditionalCollectionClass

protected CollectionCallbackItem handleAdditionalCollectionClass(Class<? extends Collection> parameterClass,
                                                                 Class name,
                                                                 org.jboss.dependency.spi.ControllerState whenRequired,
                                                                 org.jboss.dependency.spi.ControllerState dependentState,
                                                                 org.jboss.dependency.spi.Cardinality cardinality,
                                                                 org.jboss.dependency.spi.dispatch.InvokeDispatchContext context,
                                                                 AttributeInfo attribute)
Override for additional handling of collection callback item creaton via parameter class.

Parameters:
parameterClass - actual collection class
name - demand name
whenRequired - when required state
dependentState - dependent state
cardinality - the cardinality
context - invoke owner
attribute - the attribute
Returns:
new exact collection callback item


Copyright ? 2007 JBoss Inc.. All Rights Reserved.