Bug 137924

Summary: Allow the dynamic registration of ArtifactTypes
Product: [WebTools] WTP Webservices Reporter: Craig Chaney <craigcw>
Component: wst.wsiAssignee: Project Inbox <wst.wsi-triaged>
Status: ASSIGNED --- QA Contact: Keith Chong <keith.chong.ca>
Severity: enhancement    
Priority: P3 Keywords: api
Version: 1.5   
Target Milestone: Future   
Hardware: All   
OS: All   
Whiteboard: enablement, Extensibility
Bug Depends on:    
Bug Blocks: 138379    
Attachments:
Description Flags
patch to allow registration of ArtifactTypes none

Description Craig Chaney CLA 2006-04-21 07:43:12 EDT
The ArtifactType class contains a method newArtifactType() that returns one of four hardcoded static ArtifactType instances.

In order to allow for other profiles that define new artifact types (such as the Basic Security Profile) in other packages to reuse these base assertion classes, you should be able to register new artifact types from elsewhere.
Comment 1 Craig Chaney CLA 2006-04-21 07:44:51 EDT
Created attachment 39157 [details]
patch to allow registration of ArtifactTypes

This patch does the following:

- Adds a private static variable to ArtifactType that holds a map containing
  the valid TAD versions
- Statically initializes this map to contain the artifact types from the Basic
  Profile
- Adds API to allow other classes to register ArtifactTypes
- Modifies the newArtifactType() method to use the new Map variable
Comment 2 Valentin Baciu CLA 2007-11-08 13:23:50 EST
I'll try to look at this for WTP 3.0