Package org.glassfish.config.support
Interface CreationDecorator<T extends org.jvnet.hk2.config.ConfigBeanProxy>
- All Known Implementing Classes:
Cluster.Decorator,CreationDecorator.NoDecoration,Node.Decorator,SecureAdminInternalUser.CrDecorator,SecureAdminPrincipal.CrDecorator,Server.CreateDecorator
@PerLookup
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
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classDefault implementation of a decorator that does nothing. -
Method Summary
-
Method Details
-
decorate
void decorate(org.glassfish.api.admin.AdminCommandContext context, T instance) throws org.jvnet.hk2.config.TransactionFailure, PropertyVetoException The element instance has been created and added to the parent, it can be customized. This method is called within aTransactionand 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 rollbackedPropertyVetoException- if one of the listener ofis throwing a veto exception
-