You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-dev@ws.apache.org by "Steve Jerman (JIRA)" <ji...@apache.org> on 2006/09/15 19:29:23 UTC
[jira] Created: (MUSE-107) Error in handling of
Error in handling of <desc:java-capability-class>
--------------------------------------------------
Key: MUSE-107
URL: http://issues.apache.org/jira/browse/MUSE-107
Project: Muse
Issue Type: Bug
Components: Tooling - Code Generation
Affects Versions: 2.0.0
Reporter: Steve Jerman
Assigned To: Dan Jemiolo
If you specify an implementing class, for example:
<desc:capability xmlns:desc="http://ws.apache.org/muse/descriptor">
<desc:capability-uri>${modelXsdNamespace}</desc:capability-uri>
<desc:java-capability-class>com.cisco.nm.cmp.wsdm.SystemOperations</desc:java-capability-class>
</desc:capability>
ClassInfo.java doesn't handle it correctly. I uses the same name for ther Interface and the abstract class.
Adding :
if(implementingClass == null) {
_packageName = getPackageName(capability.getURI());
_classShortName = JAVA_CLASS_NAME;
_classFullName = _packageName + "." + _classShortName;
_capability.setImplementingClass(_classFullName + IMPLEMENTATION_SUFFIX);
} else {
_classFullName = implementingClass;
_classShortName = ReflectUtils.getShortName(_classFullName);
_packageName = ReflectUtils.getPackageName(_classFullName);
------> _capability.setImplementingClass(implementingClass + IMPLEMENTATION_SUFFIX);
}
Sorts it..
--
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: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org
Re: [jira] Commented: (MUSE-107) Error in handling of
Posted by Daniel Jemiolo <da...@us.ibm.com>.
I think this is the best we can do given a situation where the class
provided doesn't adhere to the default naming conventions of wsdl2java.
Dan
"Steve Jerman (JIRA)" <ji...@apache.org> wrote on 09/15/2006 04:19:23 PM:
> [
http://issues.apache.org/jira/browse/MUSE-107?page=comments#action_12435106
]
>
> Steve Jerman commented on MUSE-107:
> -----------------------------------
>
> OK .. that will work...
>
> > Error in handling of <desc:java-capability-class>
> > --------------------------------------------------
> >
> > Key: MUSE-107
> > URL: http://issues.apache.org/jira/browse/MUSE-107
> > Project: Muse
> > Issue Type: Bug
> > Components: Tooling - Code Generation
> > Affects Versions: 2.0.0
> > Reporter: Steve Jerman
> > Assigned To: Andrew Eberbach
> >
> > If you specify an implementing class, for example:
> > <desc:capability
xmlns:desc="http://ws.apache.org/muse/descriptor">
> > <desc:capability-uri>${modelXsdNamespace}</desc:capability-uri>
> > <desc:java-capability-class>com.cisco.nm.cmp.wsdm.
> SystemOperations</desc:java-capability-class>
> > </desc:capability>
> > ClassInfo.java doesn't handle it correctly. I uses the same name for
ther
> Interface and the abstract class.
> > Adding :
> > if(implementingClass == null) {
> > _packageName = getPackageName(capability.getURI());
> > _classShortName = JAVA_CLASS_NAME;
> > _classFullName = _packageName + "." + _classShortName;
> > _capability.setImplementingClass(_classFullName +
IMPLEMENTATION_SUFFIX);
> > } else {
> > _classFullName = implementingClass;
> > _classShortName = ReflectUtils.getShortName(_classFullName);
> > _packageName = ReflectUtils.getPackageName(_classFullName);
> > ------> _capability.setImplementingClass(implementingClass +
> IMPLEMENTATION_SUFFIX);
> > }
> > Sorts it..
>
> --
> 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: muse-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: muse-dev-help@ws.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org
[jira] Commented: (MUSE-107) Error in handling of
Posted by "Steve Jerman (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/MUSE-107?page=comments#action_12435106 ]
Steve Jerman commented on MUSE-107:
-----------------------------------
OK .. that will work...
> Error in handling of <desc:java-capability-class>
> --------------------------------------------------
>
> Key: MUSE-107
> URL: http://issues.apache.org/jira/browse/MUSE-107
> Project: Muse
> Issue Type: Bug
> Components: Tooling - Code Generation
> Affects Versions: 2.0.0
> Reporter: Steve Jerman
> Assigned To: Andrew Eberbach
>
> If you specify an implementing class, for example:
> <desc:capability xmlns:desc="http://ws.apache.org/muse/descriptor">
> <desc:capability-uri>${modelXsdNamespace}</desc:capability-uri>
> <desc:java-capability-class>com.cisco.nm.cmp.wsdm.SystemOperations</desc:java-capability-class>
> </desc:capability>
> ClassInfo.java doesn't handle it correctly. I uses the same name for ther Interface and the abstract class.
> Adding :
> if(implementingClass == null) {
> _packageName = getPackageName(capability.getURI());
> _classShortName = JAVA_CLASS_NAME;
> _classFullName = _packageName + "." + _classShortName;
> _capability.setImplementingClass(_classFullName + IMPLEMENTATION_SUFFIX);
> } else {
> _classFullName = implementingClass;
> _classShortName = ReflectUtils.getShortName(_classFullName);
> _packageName = ReflectUtils.getPackageName(_classFullName);
> ------> _capability.setImplementingClass(implementingClass + IMPLEMENTATION_SUFFIX);
> }
> Sorts it..
--
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: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org
[jira] Commented: (MUSE-107) Error in handling of
Posted by "Steve Jerman (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/MUSE-107?page=comments#action_12435140 ]
Steve Jerman commented on MUSE-107:
-----------------------------------
OK The principle will work, but watch how file names are created in ServerSysthesizer. The file needs the right name as well...
> Error in handling of <desc:java-capability-class>
> --------------------------------------------------
>
> Key: MUSE-107
> URL: http://issues.apache.org/jira/browse/MUSE-107
> Project: Muse
> Issue Type: Bug
> Components: Tooling - Code Generation
> Affects Versions: 2.0.0
> Reporter: Steve Jerman
> Assigned To: Andrew Eberbach
>
> If you specify an implementing class, for example:
> <desc:capability xmlns:desc="http://ws.apache.org/muse/descriptor">
> <desc:capability-uri>${modelXsdNamespace}</desc:capability-uri>
> <desc:java-capability-class>com.cisco.nm.cmp.wsdm.SystemOperations</desc:java-capability-class>
> </desc:capability>
> ClassInfo.java doesn't handle it correctly. I uses the same name for ther Interface and the abstract class.
> Adding :
> if(implementingClass == null) {
> _packageName = getPackageName(capability.getURI());
> _classShortName = JAVA_CLASS_NAME;
> _classFullName = _packageName + "." + _classShortName;
> _capability.setImplementingClass(_classFullName + IMPLEMENTATION_SUFFIX);
> } else {
> _classFullName = implementingClass;
> _classShortName = ReflectUtils.getShortName(_classFullName);
> _packageName = ReflectUtils.getPackageName(_classFullName);
> ------> _capability.setImplementingClass(implementingClass + IMPLEMENTATION_SUFFIX);
> }
> Sorts it..
--
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: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org
[jira] Commented: (MUSE-107) Error in handling of
Posted by "Andrew Eberbach (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/MUSE-107?page=comments#action_12435101 ]
Andrew Eberbach commented on MUSE-107:
--------------------------------------
I don't think that will work because then the implementation will become ...SystemOperationsImpl and the interface will be SystemOperations.
I could prepend the letter "I" to the class name to generate the interface:
<desc:java-capability-class>com.cisco.nm.cmp.wsdm.SystemOperations</desc:java-capability-class> means that
com.cisco.nm.cmp.wsdm.SystemOperations will be the generated class that has the implementation and
com.cisco.nm.cmp.wsdm.ISystemOperations is the interface that the above class implements.
Thoughts?
> Error in handling of <desc:java-capability-class>
> --------------------------------------------------
>
> Key: MUSE-107
> URL: http://issues.apache.org/jira/browse/MUSE-107
> Project: Muse
> Issue Type: Bug
> Components: Tooling - Code Generation
> Affects Versions: 2.0.0
> Reporter: Steve Jerman
> Assigned To: Andrew Eberbach
>
> If you specify an implementing class, for example:
> <desc:capability xmlns:desc="http://ws.apache.org/muse/descriptor">
> <desc:capability-uri>${modelXsdNamespace}</desc:capability-uri>
> <desc:java-capability-class>com.cisco.nm.cmp.wsdm.SystemOperations</desc:java-capability-class>
> </desc:capability>
> ClassInfo.java doesn't handle it correctly. I uses the same name for ther Interface and the abstract class.
> Adding :
> if(implementingClass == null) {
> _packageName = getPackageName(capability.getURI());
> _classShortName = JAVA_CLASS_NAME;
> _classFullName = _packageName + "." + _classShortName;
> _capability.setImplementingClass(_classFullName + IMPLEMENTATION_SUFFIX);
> } else {
> _classFullName = implementingClass;
> _classShortName = ReflectUtils.getShortName(_classFullName);
> _packageName = ReflectUtils.getPackageName(_classFullName);
> ------> _capability.setImplementingClass(implementingClass + IMPLEMENTATION_SUFFIX);
> }
> Sorts it..
--
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: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org
[jira] Assigned: (MUSE-107) Error in handling of
Posted by "Andrew Eberbach (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/MUSE-107?page=all ]
Andrew Eberbach reassigned MUSE-107:
------------------------------------
Assignee: Andrew Eberbach (was: Dan Jemiolo)
> Error in handling of <desc:java-capability-class>
> --------------------------------------------------
>
> Key: MUSE-107
> URL: http://issues.apache.org/jira/browse/MUSE-107
> Project: Muse
> Issue Type: Bug
> Components: Tooling - Code Generation
> Affects Versions: 2.0.0
> Reporter: Steve Jerman
> Assigned To: Andrew Eberbach
>
> If you specify an implementing class, for example:
> <desc:capability xmlns:desc="http://ws.apache.org/muse/descriptor">
> <desc:capability-uri>${modelXsdNamespace}</desc:capability-uri>
> <desc:java-capability-class>com.cisco.nm.cmp.wsdm.SystemOperations</desc:java-capability-class>
> </desc:capability>
> ClassInfo.java doesn't handle it correctly. I uses the same name for ther Interface and the abstract class.
> Adding :
> if(implementingClass == null) {
> _packageName = getPackageName(capability.getURI());
> _classShortName = JAVA_CLASS_NAME;
> _classFullName = _packageName + "." + _classShortName;
> _capability.setImplementingClass(_classFullName + IMPLEMENTATION_SUFFIX);
> } else {
> _classFullName = implementingClass;
> _classShortName = ReflectUtils.getShortName(_classFullName);
> _packageName = ReflectUtils.getPackageName(_classFullName);
> ------> _capability.setImplementingClass(implementingClass + IMPLEMENTATION_SUFFIX);
> }
> Sorts it..
--
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: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org
[jira] Closed: (MUSE-107) Error in handling of
Posted by "Andrew Eberbach (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/MUSE-107?page=all ]
Andrew Eberbach closed MUSE-107.
--------------------------------
> Error in handling of <desc:java-capability-class>
> --------------------------------------------------
>
> Key: MUSE-107
> URL: http://issues.apache.org/jira/browse/MUSE-107
> Project: Muse
> Issue Type: Bug
> Components: Tooling - Code Generation
> Affects Versions: 2.0.0
> Reporter: Steve Jerman
> Assigned To: Andrew Eberbach
>
> If you specify an implementing class, for example:
> <desc:capability xmlns:desc="http://ws.apache.org/muse/descriptor">
> <desc:capability-uri>${modelXsdNamespace}</desc:capability-uri>
> <desc:java-capability-class>com.cisco.nm.cmp.wsdm.SystemOperations</desc:java-capability-class>
> </desc:capability>
> ClassInfo.java doesn't handle it correctly. I uses the same name for ther Interface and the abstract class.
> Adding :
> if(implementingClass == null) {
> _packageName = getPackageName(capability.getURI());
> _classShortName = JAVA_CLASS_NAME;
> _classFullName = _packageName + "." + _classShortName;
> _capability.setImplementingClass(_classFullName + IMPLEMENTATION_SUFFIX);
> } else {
> _classFullName = implementingClass;
> _classShortName = ReflectUtils.getShortName(_classFullName);
> _packageName = ReflectUtils.getPackageName(_classFullName);
> ------> _capability.setImplementingClass(implementingClass + IMPLEMENTATION_SUFFIX);
> }
> Sorts it..
--
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: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org
[jira] Resolved: (MUSE-107) Error in handling of
Posted by "Andrew Eberbach (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/MUSE-107?page=all ]
Andrew Eberbach resolved MUSE-107.
----------------------------------
Resolution: Fixed
see: http://svn.apache.org/viewvc?view=rev&revision=446887
> Error in handling of <desc:java-capability-class>
> --------------------------------------------------
>
> Key: MUSE-107
> URL: http://issues.apache.org/jira/browse/MUSE-107
> Project: Muse
> Issue Type: Bug
> Components: Tooling - Code Generation
> Affects Versions: 2.0.0
> Reporter: Steve Jerman
> Assigned To: Andrew Eberbach
>
> If you specify an implementing class, for example:
> <desc:capability xmlns:desc="http://ws.apache.org/muse/descriptor">
> <desc:capability-uri>${modelXsdNamespace}</desc:capability-uri>
> <desc:java-capability-class>com.cisco.nm.cmp.wsdm.SystemOperations</desc:java-capability-class>
> </desc:capability>
> ClassInfo.java doesn't handle it correctly. I uses the same name for ther Interface and the abstract class.
> Adding :
> if(implementingClass == null) {
> _packageName = getPackageName(capability.getURI());
> _classShortName = JAVA_CLASS_NAME;
> _classFullName = _packageName + "." + _classShortName;
> _capability.setImplementingClass(_classFullName + IMPLEMENTATION_SUFFIX);
> } else {
> _classFullName = implementingClass;
> _classShortName = ReflectUtils.getShortName(_classFullName);
> _packageName = ReflectUtils.getPackageName(_classFullName);
> ------> _capability.setImplementingClass(implementingClass + IMPLEMENTATION_SUFFIX);
> }
> Sorts it..
--
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: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org