Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /*
  * Fabric3
  * Copyright � 2008 Metaform Systems Limited
  *
  * This proprietary software may be used only connection with the Fabric3 license
  * (the �License�), a copy of which is included in the software or may be
  * obtained at: http://www.metaformsystems.com/licenses/license.html.
 
  * Software distributed under the License is distributed on an �as is� basis,
 * without warranties or conditions of any kind.  See the License for the
 * specific language governing permissions and limitations of use of the software.
 * This software is distributed in conjunction with other software licensed under
 * different terms.  See the separate licenses for those programs included in the
 * distribution for the permitted and restricted uses of such software.
 *
 */
package org.fabric3.federation.executor;
Processes a ZoneSyncCommand on the controller by regenerating a set of deployment commands for the current state of the zone.

Version:
$Revision$ $Date$
    private Domain domain;
    public ZoneSyncCommandExecutor(@Reference(name = "domain"Domain domain, @Reference CommandExecutorRegistry executorRegistry) {
        this. = domain;
        this. = executorRegistry;
    }
    @Init
    public void init() {
        .register(ZoneSyncCommand.classthis);
    }
    public void execute(ZoneSyncCommand commandthrows ExecutionException {
        try {
            .regenerate(command.getZoneId(), command.getRuntimeId());
        } catch (DeploymentException e) {
            throw new ExecutionException(e);
        }
    }
New to GrepCode? Check out our FAQ X