I just saw in the change log that this is supposed to be implemented
since alpha-2.
What i'm trying to do is use this feature for a create-instance. So i have
<create-instance class="com.whatever.MyBean,testProperty=hi"/>
I always get the error:
Unable to process attribute class (of element
state-object/create-instance): Unable to convert type
'com.whatever.MyBean,testProperty=hi' to a Java class, either as is, or
in package com.whatever.
with the following stacktrace:
org.apache.hivemind.impl.ModuleImpl.resolveType(ModuleImpl.java:197)
org.apache.hivemind.schema.rules.ClassTranslator.translate(ClassTranslator.java:35)
org.apache.hivemind.schema.rules.ReadAttributeRule.begin(ReadAttributeRule.java:77)
org.apache.hivemind.parse.ConversionDescriptor.begin(ConversionDescriptor.java:141)
org.apache.hivemind.impl.SchemaElement.fireBegin(SchemaElement.java:228)
org.apache.hivemind.impl.SchemaProcessorImpl.processElement(SchemaProcessorImpl.java:255)
org.apache.hivemind.impl.SchemaProcessorImpl.processNestedElements(SchemaProcessorImpl.java:277)
org.apache.hivemind.impl.SchemaProcessorImpl.processElement(SchemaProcessorImpl.java:257)
org.apache.hivemind.impl.SchemaProcessorImpl.processRootElement(SchemaProcessorImpl.java:235)
org.apache.hivemind.impl.SchemaProcessorImpl.process(SchemaProcessorImpl.java:223)
org.apache.hivemind.impl.ConfigurationPointImpl.processContributionElements(ConfigurationPointImpl.java:268)
org.apache.hivemind.impl.ConfigurationPointImpl.constructMapElements(ConfigurationPointImpl.java:224)
org.apache.hivemind.impl.ElementsInnerProxyMap.inner(ElementsInnerProxyMap.java:54)
org.apache.hivemind.impl.ElementsInnerProxyMap.entrySet(ElementsInnerProxyMap.java:47)
org.apache.hivemind.impl.ElementsProxyMap.entrySet(ElementsProxyMap.java:55)
....(more).....
Any ideas that might help ?
Thanks
Hugo
Hugo Palma wrote:
Is beta-1 supposed to have the lightweight instance initialization
feature implemented as described in
http://jakarta.apache.org/hivemind/instance-initialization.html ?
I'm asking because i want to use it but i get an error that indicates
that the class name parse isn't being donne correctly. I've tried
looking in the source files and couldn't find any code that would
implement this feature.
If it's not implemented, any predictions for when it will be ?
Cheers
Hugo
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]