org.jboss.beans.metadata.plugins
Class CallbackCreatorUtil

java.lang.Object
  extended by org.jboss.beans.metadata.plugins.CallbackCreatorUtil

public class CallbackCreatorUtil
extends Object

CallbackItem creator util.

Author:
Ales Justin

Field Summary
protected static CollectionCallbackItemFactory factory
           
protected static org.jboss.logging.Logger log
           
 
Constructor Summary
CallbackCreatorUtil()
           
 
Method Summary
static CallbackItem<Class<?>> createCallback(KernelControllerContext context, AttributeInfo ai, ControllerState whenRequired, ControllerState dependentState, Cardinality cardinality)
          Create callback item from AttrbuteInfo.
static CallbackItem<Class<?>> createCallback(KernelControllerContext context, org.jboss.reflect.spi.MethodInfo mi, ControllerState whenRequired, ControllerState dependentState, Cardinality cardinality)
          Create callback item from MethodInfo.
static CallbackItem<Class<?>> createCallback(KernelControllerContext context, org.jboss.beans.info.spi.PropertyInfo pi, ControllerState whenRequired, ControllerState dependentState, Cardinality cardinality)
          Create callback item from PropertyInfo.
static CollectionCallbackItemFactory getCollectionFactory()
          Get the collection callback item factory.
protected static org.jboss.logging.Logger getLog()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.jboss.logging.Logger log

factory

protected static CollectionCallbackItemFactory factory
Constructor Detail

CallbackCreatorUtil

public CallbackCreatorUtil()
Method Detail

getLog

protected static org.jboss.logging.Logger getLog()

createCallback

public static CallbackItem<Class<?>> createCallback(KernelControllerContext context,
                                                    AttributeInfo ai,
                                                    ControllerState whenRequired,
                                                    ControllerState dependentState,
                                                    Cardinality cardinality)
Create callback item from AttrbuteInfo.

Parameters:
context - owner context
ai - attribute info
whenRequired - when required state
dependentState - dependent state
cardinality - cardinality
Returns:
callback item

createCallback

public static CallbackItem<Class<?>> createCallback(KernelControllerContext context,
                                                    org.jboss.beans.info.spi.PropertyInfo pi,
                                                    ControllerState whenRequired,
                                                    ControllerState dependentState,
                                                    Cardinality cardinality)
Create callback item from PropertyInfo.

Parameters:
context - owner context
pi - property info
whenRequired - when required state
dependentState - dependent state
cardinality - cardinality
Returns:
callback item

createCallback

public static CallbackItem<Class<?>> createCallback(KernelControllerContext context,
                                                    org.jboss.reflect.spi.MethodInfo mi,
                                                    ControllerState whenRequired,
                                                    ControllerState dependentState,
                                                    Cardinality cardinality)
Create callback item from MethodInfo.

Parameters:
context - owner context
mi - method info
whenRequired - when required state
dependentState - dependent state
cardinality - cardinality
Returns:
callback item

getCollectionFactory

public static CollectionCallbackItemFactory getCollectionFactory()
Get the collection callback item factory. You can use org.jboss.dependency.collectionCallbackItemFactory name in System properties to override default implementation class.

Returns:
get the underlying factory


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