You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Rich Scheuerle (JIRA)" <ji...@apache.org> on 2006/12/08 23:21:21 UTC
[jira] Resolved: (AXIS2-1852) JAX-WS Use both annotation and schema
walk when locating packages for JAXBContext
[ http://issues.apache.org/jira/browse/AXIS2-1852?page=all ]
Rich Scheuerle resolved AXIS2-1852.
-----------------------------------
Resolution: Fixed
SVN Revision=484823
> JAX-WS Use both annotation and schema walk when locating packages for JAXBContext
> ---------------------------------------------------------------------------------
>
> Key: AXIS2-1852
> URL: http://issues.apache.org/jira/browse/AXIS2-1852
> Project: Apache Axis 2.0 (Axis2)
> Issue Type: Bug
> Components: jaxws
> Reporter: Rich Scheuerle
>
> The schema walking code is untested. I am making a small change so that we can use both the schema walk and annotation walk.
> Here is the new getPackages method in EndpointDescriptionImpl:
> public Set<String> getPackages() {
> // @REVIEW Currently the package set is stored on the
> // EndpointDescription. We may consider moving this to
> // ServiceDescription.
>
> // The set of packages is calcuated once and saved
> if (packages == null) {
> synchronized(this) {
> // @TODO There are two ways to get the packages.
> // Schema Walk (prefered) and Annotation Walk.
> // The Schema walk requires an existing or generated schema.
> //
> // There are some limitations in the current schema walk
> // And there are problems in the annotation walk.
> // So for now we will do both.
> boolean doSchemaWalk = true;
> boolean doAnnotationWalk = true;
> packages = new HashSet<String>();
> if (doSchemaWalk) {
> packages.addAll(PackageSetBuilder.getPackagesFromSchema(this.getServiceDescription()));
> }
> if (doAnnotationWalk) {
> packages.addAll(PackageSetBuilder.getPackagesFromAnnotations(this));
> }
> }
> }
> return packages;
> }
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org