org.jboss.dependency.plugins
Class SingleCallbackItem<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,InvokeDispatchContext>
              extended by org.jboss.dependency.plugins.SingleCallbackItem<T>
Type Parameters:
T - the callback type
All Implemented Interfaces:
Cloneable, CallbackItem<T>, org.jboss.util.JBossInterface
Direct Known Subclasses:
ClassSingleCallbackItem

public class SingleCallbackItem<T>
extends OwnerCallbackItem<T,InvokeDispatchContext>

Single callback item.

Author:
Ales Justin

Field Summary
protected  String signature
           
 
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
SingleCallbackItem(T name, ControllerState whenRequired, ControllerState dependentState, InvokeDispatchContext owner, String method)
           
SingleCallbackItem(T name, ControllerState whenRequired, ControllerState dependentState, InvokeDispatchContext owner, String method, String signature)
           
SingleCallbackItem(T name, InvokeDispatchContext owner, String method)
           
SingleCallbackItem(T name, InvokeDispatchContext owner, String method, String signature)
           
 
Method Summary
protected  void changeCallback(ControllerContext context, boolean isInstallPhase)
          Helper method.
protected  void toString(org.jboss.util.JBossStringBuilder buffer)
           
 
Methods inherited from class org.jboss.dependency.plugins.OwnerCallbackItem
addDependency, changeCallback, createDependencyItem
 
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
 

Field Detail

signature

protected String signature
Constructor Detail

SingleCallbackItem

public SingleCallbackItem(T name,
                          InvokeDispatchContext owner,
                          String method)

SingleCallbackItem

public SingleCallbackItem(T name,
                          InvokeDispatchContext owner,
                          String method,
                          String signature)

SingleCallbackItem

public SingleCallbackItem(T name,
                          ControllerState whenRequired,
                          ControllerState dependentState,
                          InvokeDispatchContext owner,
                          String method)

SingleCallbackItem

public SingleCallbackItem(T name,
                          ControllerState whenRequired,
                          ControllerState dependentState,
                          InvokeDispatchContext owner,
                          String method,
                          String signature)
Method Detail

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

toString

protected void toString(org.jboss.util.JBossStringBuilder buffer)
Overrides:
toString in class OwnerCallbackItem<T,InvokeDispatchContext>


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