org.glassfish.config.support
Interface DeletionDecorator<T extends org.jvnet.hk2.config.ConfigBeanProxy,U extends org.jvnet.hk2.config.ConfigBeanProxy>

Type Parameters:
T - the deleted element parent type
U - the deleted element
All Known Implementing Classes:
Cluster.DeleteDecorator, DeletionDecorator.NoDecoration, LbConfig.DeleteDecorator, LoadBalancer.DeleteDecorator, Node.DeleteDecorator, Server.DeleteDecorator

@Scoped(value=org.jvnet.hk2.component.PerLookup.class)
public interface DeletionDecorator<T extends org.jvnet.hk2.config.ConfigBeanProxy,U extends org.jvnet.hk2.config.ConfigBeanProxy>

A decorator for acting upon a configuration element deletion.

Author:
Jerome Dochez

Nested Class Summary
static class DeletionDecorator.NoDecoration
           
 
Method Summary
 void decorate(AdminCommandContext context, T parent, U child)
          notification of a configuration element of type U deletion.
 

Method Detail

decorate

void decorate(AdminCommandContext context,
              T parent,
              U child)
              throws org.jvnet.hk2.config.TransactionFailure,
                     PropertyVetoException
notification of a configuration element of type U deletion. Note that this notification is called within the boundaries of the configuration transaction, therefore the parent instance is a writable copy and further changes to the parent can be made without enrolling it inside a transaction.

Parameters:
context - the command context to lead to the element deletion
parent - the parent instance the element was removed from
child - the deleted instance
Throws:
org.jvnet.hk2.config.TransactionFailure
PropertyVetoException


Copyright © 2012 GlassFish Community. All Rights Reserved.