blob: 1ed0b4500862c1be78baad19cc421a3bd95eec77 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2001, 2008 Oracle Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Oracle Corporation - initial API and implementation
*******************************************************************************/
package org.eclipse.jst.jsf.common.runtime.internal.debug;
import org.eclipse.jst.jsf.common.runtime.internal.model.component.ComponentInfo;
/**
* Creates JSF remote monitor messages.
*
* @author cbateman
*
*/
public class MonitorMessageFactory
{
/**
* @param viewId
* @param root
* @param renderRoot
* @return a new component tree message for the parameters
*/
public static ComponentTreeMessage createTreeMessage(final String viewId, final ComponentInfo root, final RenderNode renderRoot)
{
ComponentTreeMessage message = new ComponentTreeMessage();
message.setViewId(viewId);
message.setTreeRoot(root);
message.setRenderRoot(renderRoot);
return message;
}
}