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".


> Class clazz = method().getDeclaringClass();
>            if( Composite.class.isAssignableFrom( clazz ) )
>            {
>                // it is public methods
>            }
>            else
>            {
>               // it is private methods
>            }

No.
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
}


Cheers
Niclas
-- 
http://www.qi4j.org - New Energy for Java

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

Reply via email to