Package org.glassfish.config.support
Interface CreationDecorator<T extends ConfigBeanProxy>
-
- All Known Implementing Classes:
Cluster.Decorator,CreationDecorator.NoDecoration,LbConfig.Decorator,Node.Decorator,SecureAdminInternalUser.CrDecorator,SecureAdminPrincipal.CrDecorator,Server.CreateDecorator
@PerLookup public interface CreationDecorator<T extends 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 Classes Modifier and Type Interface Description static classCreationDecorator.NoDecorationDefault implementation of a decorator that does nothing.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddecorate(AdminCommandContext context, T instance)The element instance has been created and added to the parent, it can be customized.
-
-
-
Method Detail
-
decorate
void decorate(AdminCommandContext context, T instance) throws 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:
TransactionFailure- if the transaction should be rollbackedPropertyVetoException- if one of the listener ofis throwing a veto exception
-
-