Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[wtp-dev] Attention: Single component api changes.


Hi everyone,

Due to the recent decision of limiting components to one per project, the following changes are being released.

I am contacting component owners that are affected, and will coordinate a build drop tonight.  (I am also helping component owners with changes to ensure a smooth and quick transistion.)

API Changes:

IFlexibleProject ----------------------------------------------------------------------------- Removed (No replacement - Used to query components within a project)

ComponentCore

        public static IFlexibleProject createFlexibleProject(IProject aProject) ---------------------- Removed
        public static IVirtualComponent createComponent(IProject aProject, String aComponentName) ---- public static IVirtualComponent createComponent(IProject aProject) - (Component name assumes the project name)

ComponentHandle ------------------------------------------------------------------------------ Removed (No Replacement - Used to key on a component instance, IProject can now be used for component lookup)

ArtifactEdit

        public static ArtifactEdit getArtifactEditForRead(ComponentHandle) ---------------------------         public static ArtifactEdit getArtifactEditForRead(IProject aProject)
        public static ArtifactEdit getArtifactEditForWrite(ComponentHandle) --------------------------         public static ArtifactEdit getArtifactEditForWrite(IProject aProject)

ModuleURIUtil.fullyQualifyURI

StructureEdit

        findComponentByName(jcaModuleName);   -----------------------  getComponent();

ICreateReferenceComponentsDataModelProperties

                                SOURCE_COMPONENT_HANDLE ----------------------------------------------------------------        SOURCE_COMPONENT  (Setting components - needed for project components and binary components(*.jars)
                                TARGET_COMPONENTS_HANDLE_LIST -----------------------------------------------------   TARGET_COMPONENT_LIST

API snippet examples:

IFlexibleProject fp = ComponentCore.createFlexibleProject(projects[i]);
IVirtualComponent[] vcs = fp.getComponents();

becomes

IVirtualComponent vc = ComponentCore.createComponent(projects[i]);


ComponentHandle handle = ComponentHandle.create(ejbProject,ejbModuleName);
edit = EJBArtifactEdit.getEJBArtifactEditForRead(handle);
edit.getDeploymentDescriptorRoot();

becomes

edit = EJBArtifactEdit.getEJBArtifactEditForRead(ejbProject);
edit.getDeploymentDescriptorRoot();

Thanks - Chuck

Rational J2EE Tooling Team Lead
IBM Software Lab - Research Triangle Park, NC
Email:  cbridgha@xxxxxxxxxx
Phone: 919-254-1848 (T/L: 444)

Back to the top