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 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(org.glassfish.api.admin.AdminCommandContext context, T instance)The element instance has been created and added to the parent, it can be customized.
-
-
-
Method Detail
-
decorate
void decorate(org.glassfish.api.admin.AdminCommandContext context, T instance) throws org.jvnet.hk2.config.TransactionFailure, PropertyVetoExceptionThe 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
-
-