Interface CreationDecorator<T extends org.jvnet.hk2.config.ConfigBeanProxy>

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  CreationDecorator.NoDecoration
      Default implementation of a decorator that does nothing.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      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 Detail

      • 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