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

Reply via email to