org.jboss.aop.microcontainer.lifecycle
Class LifecycleCallbackBinding

java.lang.Object
  extended by org.jboss.aop.microcontainer.lifecycle.LifecycleCallbackBinding

public class LifecycleCallbackBinding
extends Object

A binding for callbacks for when a MC bean reaches a certain state

Version:
$Revision: 1.1 $
Author:
Kabir Khan

Field Summary
protected  ASTStart ast
          A type expression picking out the classes to apply this to
protected  ClassExpression classes
          The class to match
protected  String name
          The name of this binding
 
Constructor Summary
LifecycleCallbackBinding(String name, String classString, String typeExpression, Object controllerState)
           
 
Method Summary
 void addLifecycleCallback(String bean, String installMethod, String uninstallMethod)
           
 boolean equals(Object obj)
           
 Object getControllerState()
           
 List<LifecycleCallbackDefinition> getLifecycleCallbacks()
           
 String getName()
           
 int hashCode()
           
 boolean matches(Advisor advisor, Class<?> clazz)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected String name
The name of this binding


classes

protected ClassExpression classes
The class to match


ast

protected ASTStart ast
A type expression picking out the classes to apply this to

Constructor Detail

LifecycleCallbackBinding

public LifecycleCallbackBinding(String name,
                                String classString,
                                String typeExpression,
                                Object controllerState)
                         throws Exception
Throws:
Exception
Method Detail

getName

public String getName()

addLifecycleCallback

public void addLifecycleCallback(String bean,
                                 String installMethod,
                                 String uninstallMethod)

getLifecycleCallbacks

public List<LifecycleCallbackDefinition> getLifecycleCallbacks()

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

matches

public boolean matches(Advisor advisor,
                       Class<?> clazz)

getControllerState

public Object getControllerState()


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