/** * Apply the boot action for this update. This action is only executed when the update is processed during * server startup. By default, this method simply invokes {@link #applyUpdate(UpdateContext, UpdateResultHandler, Object)} * directly, but this behavior should be overriden if a different action must be taken at boot time. * * @param updateContext the update context */ protected void applyUpdateBootAction(UpdateContext updateContext) { applyUpdate(updateContext, UpdateResultHandler.NULL, null); }
/** * Get the namespace URI of the subsystem. * * @return the namespace URI */ public String getNamespaceUri() { return subsystemAdd.getNamespaceUri(); }
@Override protected void applyUpdate(final DomainModel element) throws UpdateFailedException { final String namespaceUri = subsystemAdd.getNamespaceUri(); if (! element.getProfile(profileName).addSubsystem(namespaceUri, subsystemAdd.createSubsystemElement())) { throw new UpdateFailedException("Subsystem '" + namespaceUri + "' is already configured in profile '" + profileName + "'"); } }
@Override public DomainSubsystemRemove getCompensatingUpdate(final DomainModel original) { return new DomainSubsystemRemove(profileName, subsystemAdd.getCompensatingUpdate(original.getProfile(profileName))); }
protected final void applyUpdate(final ProfileElement element) throws UpdateFailedException { element.addSubsystem(namespaceUri, createSubsystemElement()); }
public ServerSubsystemRemove getCompensatingUpdate(final ServerModel original) { return new ServerSubsystemRemove(subsystemAdd.getCompensatingUpdate(original.getProfile())); } }
public <P> void applyUpdate(final UpdateContext updateContext, final UpdateResultHandler<? super Void, P> handler, final P param) { subsystemAdd.applyUpdate(updateContext, handler, param); }
public String getNamespaceUri() { return subsystemAdd.getNamespaceUri(); }
protected void applyUpdate(final ServerModel element) throws UpdateFailedException { subsystemAdd.applyUpdate(element.getProfile()); }