[104051] Cache components rather than component name in j2ee export dm's - Fixes failing J2EE Junits - No code change just added javadoc as this java doc is very important info for clients to be aware of.
diff --git a/plugins/org.eclipse.jst.common.frameworks/src/org/eclipse/jst/common/componentcore/util/ComponentUtilities.java b/plugins/org.eclipse.jst.common.frameworks/src/org/eclipse/jst/common/componentcore/util/ComponentUtilities.java
index 6d41946..c780cd7 100644
--- a/plugins/org.eclipse.jst.common.frameworks/src/org/eclipse/jst/common/componentcore/util/ComponentUtilities.java
+++ b/plugins/org.eclipse.jst.common.frameworks/src/org/eclipse/jst/common/componentcore/util/ComponentUtilities.java
@@ -199,6 +199,15 @@
 		}
 		return ComponentCore.createComponent(project, module.getName());
 	}
+	
+	/**
+	 * **********************Please read java doc before using this api*******************
+	 * This is a very expensive api from a performance point as it does a structure edit
+	 * access and release for each component in the workspace. Use this api very sparingly
+	 * and if used cached the information returned by this api for further processing
+	 * @return - A an array of all virtual components in the workspace
+	 * ***********************************************************************************
+	 */
 
 	public static IVirtualComponent[] getAllWorkbenchComponents() {
 		List components = new ArrayList();
@@ -218,6 +227,15 @@
 		IFlexibleProject flexProject = ComponentCore.createFlexibleProject(project);
 		return flexProject.getComponents();
 	}
+	
+	/**
+	 * **********************Please read java doc before using this api*******************
+	 * This is a very expensive api from a performance point as it does a structure edit
+	 * access and release for each component in the workspace. Use this api very sparingly
+	 * and if used cached the information returned by this api for further processing
+	 * @return - A virtual component in the workspace
+	 * ***********************************************************************************
+	 */
 
 	public static IVirtualComponent[] getComponent(String componentName) {
 		IVirtualComponent[] allComponents = getAllWorkbenchComponents();