@@ -0,0 +1,3177 @@
+/*%0A * JBoss, Home of Professional Open Source.%0A * Copyright 2015, Red Hat, Inc., and individual contributors%0A * as indicated by the @author tags. See the copyright.txt file in the%0A * distribution for a full listing of individual contributors.%0A *%0A * This is free software; you can redistribute it and/or modify it%0A * under the terms of the GNU Lesser General Public License as%0A * published by the Free Software Foundation; either version 2.1 of%0A * the License, or (at your option) any later version.%0A *%0A * This software is distributed in the hope that it will be useful,%0A * but WITHOUT ANY WARRANTY; without even the implied warranty of%0A * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU%0A * Lesser General Public License for more details.%0A *%0A * You should have received a copy of the GNU Lesser General Public%0A * License along with this software; if not, write to the Free%0A * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA%0A * 02110-1301 USA, or see the FSF site: http://www.fsf.org.%0A */%0A%0Apackage org.jboss.as.controller;%0A%0Aimport java.util.Collection;%0Aimport java.util.Set;%0A%0Aimport org.jboss.as.controller.capability.RuntimeCapability;%0Aimport org.jboss.as.controller.registry.Resource;%0Aimport org.jboss.dmr.ModelNode;%0A%0A/**%0A * An handler for an 'add' operation that does nothing in the%0A * %7B@link org.jboss.as.controller.OperationContext.Stage#RUNTIME runtime stage%7D but put the process in%0A * reload-required state. It does nothing at all in the runtime stage during boot.%0A * %3Cp%3E%0A * Use case for this handler is for resources that only represent configuration data of their parent.%0A * During boot in the runtime stage the parent reads the child model and configures its services%0A * accordingly. Thereafter any change to the child model should put the process in reload-required.%0A * %3Cp%3E%0A * The %7B@link org.jboss.as.controller.RestartParentResourceAddHandler%7D performs a similar function, but%0A * allows restart of the parent resource.%0A *%0A * @see org.jboss.as.controller.RestartParentResourceAddHandler%0A *%0A * @author Brian Stansberry%0A */%0Apublic class ReloadRequiredAddStepHandler extends AbstractAddStepHandler %7B%0A%0A    public ReloadRequiredAddStepHandler(AttributeDefinition... attributes) %7B%0A        super(attributes);%0A    %7D%0A%0A    public ReloadRequiredAddStepHandler(Collection%3CAttributeDefinition%3E attributes) %7B%0A        super(attributes);%0A    %7D%0A    public ReloadRequiredAddStepHandler(RuntimeCapability capability, AttributeDefinition... attributes) %7B%0A        super(capability, attributes);%0A    %7D%0A%0A    public ReloadRequiredAddStepHandler(Set%3CRuntimeCapability%3E capabilities, Collection%3CAttributeDefinition%3E attributes) %7B%0A        super(capabilities, attributes);%0A    %7D%0A%0A    @Override%0A    protected boolean requiresRuntime(OperationContext context) %7B%0A        return !context.isBooting() && super.requiresRuntime(context);%0A    %7D%0A%0A    @Override%0A    protected void performRuntime(OperationContext context, ModelNode operation, Resource resource) %7B%0A        context.reloadRequired();%0A    %7D%0A%0A    @Override%0A    protected void rollbackRuntime(OperationContext context, ModelNode operation, Resource resource) %7B%0A        context.revertReloadRequired();%0A    %7D%0A%7D%0A

Add a ReloadRequiredAddStepHandler since its starting to pop up in extensions