[
https://issues.apache.org/jira/browse/TUSCANY-1110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12472950
]
Yang ZHONG commented on TUSCANY-1110:
-------------------------------------
We probably can add this into ClassImpl/DataTypeImpl:
static Map<String,Collection<Type>> class2Types;
public void setInstanceClassName(String instanceClassName)
{
super.setInstanceClassName( instanceClassName);
class2Types.get( instanceClassName).add( this);
}
and implement TypeHelperImpl#getType(Class c) similar to:
class2Types.get( c.getName()).iterator().next()
Things to consider (including your approach):
scope/HelperContext
what else?
> Improve the performance of TypeHelperImpl.getType(Class)
> --------------------------------------------------------
>
> Key: TUSCANY-1110
> URL: https://issues.apache.org/jira/browse/TUSCANY-1110
> Project: Tuscany
> Issue Type: Improvement
> Components: Java SDO Implementation
> Affects Versions: Java-SDO-Mx
> Reporter: Raymond Feng
> Fix For: Java-SDO-Mx
>
>
> In the SDO databinding for SCA, we need to introspect a java class/interface
> to figure out the corresponding SDO type. Looking into the code, there is a
> TODO comment:
> //TODO more efficient implementation ... this is a really bad one!
> Do you plan to provide a more efficient impl :-)?
> Thanks,
> Raymond
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]