Package org.glassfish.config.support
Class CreationDecorator.NoDecoration
java.lang.Object
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 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddecorate(org.glassfish.api.admin.AdminCommandContext context, org.jvnet.hk2.config.ConfigBeanProxy instance) The element instance has been created and added to the parent, it can be customized.
-
Constructor Details
-
NoDecoration
public NoDecoration()
-
-
Method Details
-
decorate
public void decorate(org.glassfish.api.admin.AdminCommandContext context, org.jvnet.hk2.config.ConfigBeanProxy instance) throws org.jvnet.hk2.config.TransactionFailure, PropertyVetoException Description copied from interface:CreationDecoratorThe 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.- Specified by:
decoratein interfaceCreationDecorator<org.jvnet.hk2.config.ConfigBeanProxy>- 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
-