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.Object
configObject
-
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 Configuration
onConfigurationAdd(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.
-
-
-
Method Detail
-
onEntityAdd
public void onEntityAdd(Entity parent, Entity newEntity) throws EntityAddException
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
public Configuration onConfigurationAdd(Entity parent, Entity newEntity) throws EntityAddException
Description copied from interface:EntityAddListener
Internal use only.- Specified by:
onConfigurationAdd
in interfaceEntityAddListener
- Throws:
EntityAddException
-
onEntityRemove
public void onEntityRemove(Entity parent, Entity newEntity) throws EntityRemoveException
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.
-
-