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)" <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
