org.locomotive.directory
Class DirectoryEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--org.locomotive.directory.DirectoryEvent

public class DirectoryEvent
extends java.util.EventObject

All events that occurs when using the bean directory will generate this event.

Version:
$Id: DirectoryEvent.java,v 1.1 1999/05/05 10:19:32 gunnar Exp $
Author:
Gunnar Rønning (gunnar@candleweb.no).
See Also:
Serialized Form

Field Summary
protected  BeanConfiguration beanConfig
           
protected  BeanProperty beanProperty
           
protected  java.lang.String message
           
protected  java.lang.Throwable throwable
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
DirectoryEvent(int type, java.lang.Object source, java.lang.String message)
          Constructor for the DirectoryEvent.
DirectoryEvent(int type, java.lang.Object source, java.lang.String message, BeanConfiguration beanConfig)
          Constructor for the DirectoryEvent.
DirectoryEvent(int type, java.lang.Object source, java.lang.String message, BeanConfiguration beanConfig, BeanProperty beanProperty)
          Constructor for the DirectoryEvent.
DirectoryEvent(int type, java.lang.Object source, java.lang.String message, BeanConfiguration beanConfig, BeanProperty beanProperty, java.lang.Throwable throwable)
          Constructor for the DirectoryEvent.
 
Method Summary
 BeanConfiguration getBeanConfig()
          If this event occured in the context of a particular bean configuration, this method will return it.
 BeanProperty getBeanProperty()
          If this event occured in the context of a particular bean property, this method will return it.
 java.lang.String getMessage()
          Get a descriptive message of the event.
 java.lang.Throwable getThrowable()
          If this event was triggered by an throwable, this method will return that throwable.
 int getType()
          Get the type of this directory event.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

message

protected java.lang.String message

beanConfig

protected BeanConfiguration beanConfig

beanProperty

protected BeanProperty beanProperty

throwable

protected java.lang.Throwable throwable
Constructor Detail

DirectoryEvent

public DirectoryEvent(int type,
                      java.lang.Object source,
                      java.lang.String message)
Constructor for the DirectoryEvent.
Parameters:
type - The type of DirectoryEvent, see DirectoryEventTypes for valid types.
source - The object that generated the event.
message - Descriptive message of the event.

DirectoryEvent

public DirectoryEvent(int type,
                      java.lang.Object source,
                      java.lang.String message,
                      BeanConfiguration beanConfig)
Constructor for the DirectoryEvent.
Parameters:
type - The type of DirectoryEvent, see DirectoryEventTypes for valid types.
source - The object that generated the event.
message - Descriptive message of the event.
beanConfig - The BeanConfiguration processed when the event occured, or null.

DirectoryEvent

public DirectoryEvent(int type,
                      java.lang.Object source,
                      java.lang.String message,
                      BeanConfiguration beanConfig,
                      BeanProperty beanProperty)
Constructor for the DirectoryEvent.
Parameters:
type - The type of DirectoryEvent, see DirectoryEventTypes for valid types.
source - The object that generated the event.
message - Descriptive message of the event.
beanConfig - The BeanConfiguration processed when the event occured, or null.
beanProperty - The BeanProperty processed when the event occured, or null.

DirectoryEvent

public DirectoryEvent(int type,
                      java.lang.Object source,
                      java.lang.String message,
                      BeanConfiguration beanConfig,
                      BeanProperty beanProperty,
                      java.lang.Throwable throwable)
Constructor for the DirectoryEvent.
Parameters:
type - The type of DirectoryEvent, see DirectoryEventTypes for valid types.
source - The object that generated the event.
message - Descriptive message of the event.
beanConfig - The BeanConfiguration processed when the event occured, or null.
beanProperty - The BeanProperty processed when the event occured, or null.
throwable - The Throwable that triggered the event, or null.
Method Detail

getType

public int getType()
Get the type of this directory event. See DirectoryEventTypes for valid types.
Returns:
The type of this directory event.

getMessage

public java.lang.String getMessage()
Get a descriptive message of the event.
Returns:
Returns a String containing a descriptive message of the event.

getBeanConfig

public BeanConfiguration getBeanConfig()
If this event occured in the context of a particular bean configuration, this method will return it.
Returns:
Return a BeanConfiguration or null if the event didn't occur in the context of a particular BeanConfiguration.

getBeanProperty

public BeanProperty getBeanProperty()
If this event occured in the context of a particular bean property, this method will return it.
Returns:
Return a BeanProperty or null if the event didn't occur in the context of a particular BeanProperty.

getThrowable

public java.lang.Throwable getThrowable()
If this event was triggered by an throwable, this method will return that throwable.
Returns:
An throwable or null if the event wasn't triggered by an throwable.