/*
 * Copyright (C) 2012 salesforce.com, inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *         http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.auraframework.integration;

import java.io.IOException;
import java.util.Map;

import org.auraframework.throwable.AuraRuntimeException;
import org.auraframework.throwable.quickfix.QuickFixException;

/**
 * An Integration defines the scope of creating a set of component injection
 * scripts
 * 
 * @author dchasman
 * @since 184
 */
public interface Integration {
	/**
	 * Generate a <script> tag that will correctly embed an instance of an Aura
	 * application and context
	 * 
	 * @param out
	 *            Destination for injection script content
	 * @throws AuraRuntimeException
	 * @throws IOException
	 */
	void injectApplication(Appendable out) throws AuraRuntimeException, IOException;

	/**
	 * Generate a <script> tag that will correctly embed an instance of an Aura
	 * component bound to the DOM element identified by localDomId
	 * 
	 * @param tag
	 *            Fully qualified (namespace:name) name of the Aura component
	 * @param attributes
	 * @param localId
	 *            Specify the user provided locally unique id of this component
	 *            that can be used with $A.getRoot().find(localId)
	 * @param locatorDomId
	 *            The DOM identifier for the element that will be used as the
	 *            parent of the component's elements
	 * @param out
	 *            Destination for injection script content
	 * @throws AuraRuntimeException
	 * @throws IOException
	 * @throws QuickFixException
	 */
	void injectComponent(String tag, Map<String, Object> attributes, String localId, String locatorDomId, Appendable out) throws AuraRuntimeException,
			IOException, QuickFixException;

	@Deprecated
	/**
	 * NOTE: This is about to die die die with @Gordon Oliver's pending changes to add dependencies and kill preloads!!!
	 * @deprecated
	 * @param namespace whose defs should be preloaded on the client.
	 */
	void addPreload(String namespace);
}

@@ -998,32 +998,38 @@
  Generate a 
-%3C
+&lt;
 script
-%3E
+&gt;
  tag that wi
@@ -1343,16 +1343,22 @@
 e a 
-%3C
+&lt;
 script
-%3E
+&gt;
  tag

Fix javadoc