On Sun, Dec 13, 2009 at 7:34 PM, Alex Shneyderman
<[email protected]> wrote:
> Is
> this metaInfo something that could be set on the
> user's model at assembly time?
Yes, that is correct.
> If so, how would I do this?
Unfortunately, I can't find any discussion on this, and the
ModuleAssembly.forMixin( type ).setMetaInfo( info ), is not obvious
how it relates to Property metaInfo, and the code looks "suspicious"
to me.
Rickard??
Also for Rickard, the "suspicious" part is in MetaInfoDeclaration,
around line 104-109
public Object invoke( Object o, Method method, Object[]
objects ) throws Throwable
{
final MethodInfo methodInfo = new MethodInfo( metaInfo );
methodInfos.put( method, methodInfo );
metaInfo = null; // reset
Why is metaInfo set to null, and subsequent method calls will replace
it with a null instance?
--
Niclas Hedhman, Software Developer
http://www.qi4j.org - New Energy for Java
I live here; http://tinyurl.com/2qq9er
I work here; http://tinyurl.com/2ymelc
I relax here; http://tinyurl.com/2cgsug
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev