org.jboss.dependency.plugins
Class AttributeCallbackItem<T>

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<T>
Type Parameters:
T - the callback type
All Implemented Interfaces:
Cloneable, CallbackItem<T>, org.jboss.util.JBossInterface
Direct Known Subclasses:
ClassAttributeCallbackItem

public class AttributeCallbackItem<T>
extends OwnerCallbackItem<T,AttributeDispatchContext>

Attribute callback item.

Author:
Ales Justin

Field Summary
 
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
AttributeCallbackItem(T name, AttributeDispatchContext owner, String attribute)
           
AttributeCallbackItem(T name, ControllerState whenRequired, ControllerState dependentState, AttributeDispatchContext owner, String attribute)
           
 
Method Summary
protected  void changeCallback(ControllerContext context, boolean isInstallPhase)
          Helper method.
protected  void execute(Object target)
           
 
Methods inherited from class org.jboss.dependency.plugins.OwnerCallbackItem
addDependency, changeCallback, createDependencyItem, toString
 
Methods inherited from class org.jboss.dependency.plugins.AbstractCallbackItem
getAttributeName, getDependentState, getIDependOn, getWhenRequired, ownerCallback, 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
 

Constructor Detail

AttributeCallbackItem

public AttributeCallbackItem(T name,
                             AttributeDispatchContext owner,
                             String attribute)

AttributeCallbackItem

public AttributeCallbackItem(T name,
                             ControllerState whenRequired,
                             ControllerState dependentState,
                             AttributeDispatchContext owner,
                             String attribute)
Method Detail

execute

protected void execute(Object target)
                throws Throwable
Throws:
Throwable

changeCallback

protected void changeCallback(ControllerContext context,
                              boolean isInstallPhase)
                       throws Throwable
Description copied from class: AbstractCallbackItem
Helper method.

Overrides:
changeCallback in class AbstractCallbackItem<T>
Parameters:
context - changed context
isInstallPhase - install or uninstall phase
Throws:
Throwable - for any error


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