Allow SmartTranslator to translate to a Class
---------------------------------------------

         Key: HIVEMIND-74
         URL: http://issues.apache.org/jira/browse/HIVEMIND-74
     Project: HiveMind
        Type: Improvement
  Components: framework  
    Versions: 1.0    
    Reporter: Steve Gibson


Not sure if I could classify this as a bug, but it affects consistency when 
configuring HiveMind.

I have a configuration:
   <service-point id="CommandFactory" 
interface="org.apache.hivemind.lib.BeanFactory">
      <invoke-factory service-id="hivemind.BuilderFactory">
         <construct class="com.cowww.commons.hivemind.ServiceBeanFactory" 
messages-property="messages" log-property="log">
            <set property="vendClass" value="com.cowww.blah.Command"/>
         </construct>
      </invoke-factory>
   </service-point>

When HiveMind parses this, the value of the property "vendClass" has 
SmartTranslator applied. Unfortunately, SmartTranslator does not support 
"Class" translation.

This is inconsistent as there exists a ClassTranslator that can be used in 
processing configuration points.

My suggestion is to add a PropertyEditor for Class, which would also deprecate 
the ClassTranslator I believe.

I can supply an implementation of ClassPropertyEditor, but it really is trivial 
to implement.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to