Package com.swiftmq.mgmt
Class EntityChangeAdapter
java.lang.Object
com.swiftmq.mgmt.EntityChangeAdapter
- All Implemented Interfaces:
EntityAddListener
,EntityRemoveListener
- Direct Known Subclasses:
EntityListEventAdapter
An adapter class that joins EntityAddListener and EntityRemoveListener.
- Author:
- IIT GmbH, Bremen/Germany, Copyright (c) 2000-2002, All Rights Reserved
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiononConfigurationAdd
(Entity parent, Entity newEntity) Internal use only.void
onEntityAdd
(Entity parent, Entity newEntity) Called before the Entity is added.void
onEntityRemove
(Entity parent, Entity newEntity) Called before the Entity is removed.
-
Field Details
-
configObject
-
-
Constructor Details
-
EntityChangeAdapter
Create a new EntityChangeAdapter. A custom config object can be store at creation time for later use.- Parameters:
configObject
- config object.
-
-
Method Details
-
onEntityAdd
Description copied from interface:EntityAddListener
Called before the Entity is added. The listener should do the appropriate work and should throw an EntityAddException if there is any reason that prevents the addition. If no exception is thrown, the entity will be added to the parent.- Specified by:
onEntityAdd
in interfaceEntityAddListener
- Parameters:
parent
- the parent.newEntity
- the new entity to be added.- Throws:
EntityAddException
- if there is any reason that prevents the addition.
-
onConfigurationAdd
Description copied from interface:EntityAddListener
Internal use only.- Specified by:
onConfigurationAdd
in interfaceEntityAddListener
- Throws:
EntityAddException
-
onEntityRemove
Description copied from interface:EntityRemoveListener
Called before the Entity is removed. The listener should do the appropriate work and should throw an EntityRemoveException if there is any reason that prevents the removal. If no exception is thrown, the entity will be removed from the parent.- Specified by:
onEntityRemove
in interfaceEntityRemoveListener
- Parameters:
parent
- the parent.newEntity
- the entity to be delete.- Throws:
EntityRemoveException
- if there is any reason that prevents the removal.
-