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 class 
    Default implementation of a decorator that does nothing.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    decorate(org.glassfish.api.admin.AdminCommandContext context, T instance)
    The element instance has been created and added to the parent, it can be customized.
  • 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 a Transaction and instance is therefore a writeable view on the configuration component.
      Parameters:
      context - administration command context
      instance - newly created configuration element
      Throws:
      org.jvnet.hk2.config.TransactionFailure - if the transaction should be rollbacked
      PropertyVetoException - if one of the listener of is throwing a veto exception