org.glassfish.config.support
Class CreationDecorator.NoDecoration

java.lang.Object
  extended by org.glassfish.config.support.CreationDecorator.NoDecoration
All Implemented Interfaces:
CreationDecorator<org.jvnet.hk2.config.ConfigBeanProxy>
Enclosing interface:
CreationDecorator<T extends org.jvnet.hk2.config.ConfigBeanProxy>

@Service
public static class CreationDecorator.NoDecoration
extends java.lang.Object
implements CreationDecorator<org.jvnet.hk2.config.ConfigBeanProxy>

Default implementation of a decorator that does nothing.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.glassfish.config.support.CreationDecorator
CreationDecorator.NoDecoration
 
Constructor Summary
CreationDecorator.NoDecoration()
           
 
Method Summary
 void decorate(AdminCommandContext context, org.jvnet.hk2.config.ConfigBeanProxy instance)
          The element instance has been created and added to the parent, it can be customized.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreationDecorator.NoDecoration

public CreationDecorator.NoDecoration()
Method Detail

decorate

public void decorate(AdminCommandContext context,
                     org.jvnet.hk2.config.ConfigBeanProxy instance)
              throws org.jvnet.hk2.config.TransactionFailure,
                     java.beans.PropertyVetoException
Description copied from interface: CreationDecorator
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.

Specified by:
decorate in interface CreationDecorator<org.jvnet.hk2.config.ConfigBeanProxy>
Parameters:
context - administration command context
instance - newly created configuration element
Throws:
org.jvnet.hk2.config.TransactionFailure - if the transaction should be rollbacked
java.beans.PropertyVetoException - if one of the listener of is throwing a veto exception


Copyright © 2012 GlassFish Community. All Rights Reserved.