Package com.swiftmq.mgmt
Class EntityChangeAdapter
- java.lang.Object
-
- com.swiftmq.mgmt.EntityChangeAdapter
-
- All Implemented Interfaces:
EntityAddListener,EntityRemoveListener
- Direct Known Subclasses:
EntityListEventAdapter
public class EntityChangeAdapter extends java.lang.Object implements EntityAddListener, EntityRemoveListener
An adapter class that joins EntityAddListener and EntityRemoveListener.- Author:
- IIT GmbH, Bremen/Germany, Copyright (c) 2000-2002, All Rights Reserved
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.ObjectconfigObject
-
Constructor Summary
Constructors Constructor Description EntityChangeAdapter(java.lang.Object configObject)Create a new EntityChangeAdapter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConfigurationonConfigurationAdd(Entity parent, Entity newEntity)Internal use only.voidonEntityAdd(Entity parent, Entity newEntity)Called before the Entity is added.voidonEntityRemove(Entity parent, Entity newEntity)Called before the Entity is removed.
-
-
-
Method Detail
-
onEntityAdd
public void onEntityAdd(Entity parent, Entity newEntity) throws EntityAddException
Description copied from interface:EntityAddListenerCalled 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:
onEntityAddin interfaceEntityAddListener- Parameters:
parent- the parent.newEntity- the new entity to be added.- Throws:
EntityAddException- if there is any reason that prevents the addition.
-
onConfigurationAdd
public Configuration onConfigurationAdd(Entity parent, Entity newEntity) throws EntityAddException
Description copied from interface:EntityAddListenerInternal use only.- Specified by:
onConfigurationAddin interfaceEntityAddListener- Throws:
EntityAddException
-
onEntityRemove
public void onEntityRemove(Entity parent, Entity newEntity) throws EntityRemoveException
Description copied from interface:EntityRemoveListenerCalled 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:
onEntityRemovein interfaceEntityRemoveListener- Parameters:
parent- the parent.newEntity- the entity to be delete.- Throws:
EntityRemoveException- if there is any reason that prevents the removal.
-
-