Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 295946

Summary: Create a default ModelProviderFactory for Connector 1.6
Product: [WebTools] WTP Java EE Tools Reporter: Carl Anderson <ccc>
Component: jst.j2eeAssignee: Carl Anderson <ccc>
Status: RESOLVED FIXED QA Contact: Chuck Bridgham <cbridgha>
Severity: enhancement    
Priority: P3 Keywords: plan
Version: 3.1   
Target Milestone: 3.2 M4   
Hardware: PC   
OS: Windows XP   
Whiteboard: JavaEE6
Attachments:
Description Flags
Create a default Connector16ModelProviderFactory
none
Two minor fixes. none

Description Carl Anderson CLA 2009-11-23 17:56:45 EST
As a continuation of bug 252615, support for a Java EE 6 version of the JCA specification is being added.  We need to update the ConnectorFacetInstallDelegate to utilize the appropriate ModelProvider, as implemented in a ModelProviderFactory.
Comment 1 Carl Anderson CLA 2009-11-23 17:59:32 EST
Also note that, since JCA 1.6 is new as of Java EE 6, the content describer is org.eclipse.jst.jee.ee6connectorDD
Comment 2 Carl Anderson CLA 2009-11-23 18:02:15 EST
Created attachment 152909 [details]
Create a default Connector16ModelProviderFactory

I also tweaked ConnectorComponentImportDataModelProvider to set the GENERATE_DD flag to false, with a corresponding change to ConnectorFacetInstallDelegate to not generate the deployment descriptor if that is set to false.
Comment 3 Carl Anderson CLA 2009-11-23 18:57:33 EST
Created attachment 152911 [details]
Two minor fixes.

The legacy validator needs to be disabled for JCA 1.6
Also, the displayName was not being properly set due to a ClassCastException.
Comment 4 Carl Anderson CLA 2009-11-23 18:58:11 EST
Committed both patches to HEAD.
Comment 5 Carl Anderson CLA 2009-12-03 22:30:08 EST
This was committed to HEAD