Hi,

On Wed, Feb 25, 2009 at 6:28 PM, Niclas Hedhman <[email protected]> wrote:
> On Wed, Feb 25, 2009 at 6:11 PM, Tonny Kohar <[email protected]> wrote:
>
>> What is layering  ?
>
> Application Layers. The "UI layer uses the Domain layer", "Domain
> layer uses Infrastructure layer", and so forth. Layers are custom, and
> composites in one layer can only use 'exposed' composites in layers
> that it "uses".

Oh I see, I will figure it how to add layering. I think I saw
something similar on the prefuse demo application.


> For the 'current Composite' (CompositeDescriptor called earlier), if
> it extends the declaring class, then the method is public.
>
> Class compositeClass = ... // from visitor call.
>
> Class mixinMethodClass = method().getDeclaringClass();
> if( compositeClass.isAssignableFrom( mixinMethodClass ) )
> {
>    // it is public methods
> }
> else
> {
>    // it is private methods
> }
>

It still does not produce the correct result. It is because the way
the entity declared

@Mixins( PersonEntity.PersonMixin.class )
interface PersonEntity extends Person, EntityComposite
{
    class PersonMixin
        implements Person
    {
    ......
    }
}


Cheers
Tonny Kohar

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to