org.jboss.kernel.plugins.dependency
Class ClassAttributeCallbackItem

java.lang.Object
  extended by org.jboss.util.JBossObject
      extended by org.jboss.dependency.plugins.AbstractCallbackItem<T>
          extended by org.jboss.dependency.plugins.OwnerCallbackItem<T,AttributeDispatchContext>
              extended by org.jboss.dependency.plugins.AttributeCallbackItem<Class<?>>
                  extended by org.jboss.kernel.plugins.dependency.ClassAttributeCallbackItem
All Implemented Interfaces:
Cloneable, CallbackItem<Class<?>>, org.jboss.util.JBossInterface

public class ClassAttributeCallbackItem
extends AttributeCallbackItem<Class<?>>

Class callback item - class dependency.

Author:
Ales Justin

Field Summary
protected  Cardinality 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
ClassAttributeCallbackItem(Class<?> name, AttributeDispatchContext owner, String attribute)
           
ClassAttributeCallbackItem(Class<?> name, ControllerState whenRequired, ControllerState dependentState, Cardinality cardinality, AttributeDispatchContext owner, String attribute)
           
 
Method Summary
protected  DependencyItem createDependencyItem(ControllerContext owner)
          Create dependency - if it exists.
 void ownerCallback(Controller controller, boolean isInstallPhase)
          Execute callback when item added to controller.
 
Methods inherited from class org.jboss.dependency.plugins.AttributeCallbackItem
changeCallback, execute
 
Methods inherited from class org.jboss.dependency.plugins.OwnerCallbackItem
addDependency, changeCallback, toString
 
Methods inherited from class org.jboss.dependency.plugins.AbstractCallbackItem
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

cardinality

protected Cardinality cardinality
Constructor Detail

ClassAttributeCallbackItem

public ClassAttributeCallbackItem(Class<?> name,
                                  AttributeDispatchContext owner,
                                  String attribute)

ClassAttributeCallbackItem

public ClassAttributeCallbackItem(Class<?> name,
                                  ControllerState whenRequired,
                                  ControllerState dependentState,
                                  Cardinality cardinality,
                                  AttributeDispatchContext owner,
                                  String attribute)
Method Detail

ownerCallback

public void ownerCallback(Controller controller,
                          boolean isInstallPhase)
                   throws Throwable
Description copied from interface: CallbackItem
Execute callback when item added to controller.

Specified by:
ownerCallback in interface CallbackItem<Class<?>>
Overrides:
ownerCallback in class AbstractCallbackItem<Class<?>>
Parameters:
controller - the controller
isInstallPhase - install or uninstall
Throws:
Throwable - for any error

createDependencyItem

protected DependencyItem createDependencyItem(ControllerContext owner)
Description copied from class: OwnerCallbackItem
Create dependency - if it exists.

Overrides:
createDependencyItem in class OwnerCallbackItem<Class<?>,AttributeDispatchContext>
Parameters:
owner - if owner is controller context
Returns:
dependency or null if no such dependency exists


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