Package com.swiftmq.mgmt
Interface EntityAddListener
- All Known Implementing Classes:
EntityChangeAdapter
,EntityListEventAdapter
public interface EntityAddListener
A listener on an Entity which will be called before the Entity is added.
- Author:
- IIT GmbH, Bremen/Germany, Copyright (c) 2000-2002, All Rights Reserved
-
Method Summary
Modifier and TypeMethodDescriptiononConfigurationAdd
(Entity parent, Entity newEntity) Internal use only.void
onEntityAdd
(Entity parent, Entity newEntity) Called before the Entity is added.
-
Method Details
-
onEntityAdd
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.- Parameters:
parent
- the parent.newEntity
- the new entity to be added.- Throws:
EntityAddException
- if there is any reason that prevents the addition.
-
onConfigurationAdd
Internal use only.- Throws:
EntityAddException
-