org.glassfish.config.support
Interface CreationDecorator<T extends org.jvnet.hk2.config.ConfigBeanProxy>
- All Known Implementing Classes:
- Cluster.Decorator, CreationDecorator.NoDecoration, LbConfig.Decorator, Node.Decorator, SecureAdminInternalUser.CrDecorator, SecureAdminPrincipal.CrDecorator, Server.CreateDecorator
@Scoped(value=org.jvnet.hk2.component.PerLookup.class)
public interface CreationDecorator<T extends org.jvnet.hk2.config.ConfigBeanProxy>
An element decorator decorates a newly added configuration element, usually added
through the generic create command implementation.
- Author:
- Jerome Dochez
|
Method Summary |
void |
decorate(AdminCommandContext context,
T instance)
The element instance has been created and added to the parent, it can be
customized. |
decorate
void decorate(AdminCommandContext context,
T instance)
throws org.jvnet.hk2.config.TransactionFailure,
java.beans.PropertyVetoException
- The element instance has been created and added to the parent, it can be
customized. This method is called within a
Transaction
and instance is therefore a writeable view on the configuration component.
- Parameters:
context - administration command contextinstance - newly created configuration element
- Throws:
org.jvnet.hk2.config.TransactionFailure - if the transaction should be rollbacked
java.beans.PropertyVetoException - if one of the listener of is throwing a veto exception
Copyright © 2012 GlassFish Community. All Rights Reserved.