Package org.qi4j.api.composite

Examples of org.qi4j.api.composite.CompositeDescriptor


            {
                thisType = bindingContext.model().type();
            }
            else
            {
                CompositeDescriptor acd = ( (CompositeDescriptor) bindingContext.model() );
                boolean ok = false;
                for( Class mixinType : acd.mixinTypes() )
                {
                    if( thisType.isAssignableFrom( mixinType ) )
                    {
                        ok = true;
                        break;
View Full Code Here


            {
                injectionTypes = bindingContext.model().types();
            }
            else
            {
                CompositeDescriptor acd = ( (CompositeDescriptor) bindingContext.model() );
                for( Class<?> mixinType : acd.mixinTypes() )
                {
                    if( thisType.isAssignableFrom( mixinType ) )
                    {
                        Iterable<? extends Class<?>> iterable = iterable( thisType );
                        injectionTypes = (Iterable<Class<?>>) iterable;
View Full Code Here

        List<CompositeMethodDetailDescriptor> publicList = new ArrayList<>();
        List<CompositeMethodDetailDescriptor> privateList = new ArrayList<>();

        for( CompositeMethodDetailDescriptor descriptor : iter )
        {
            CompositeDescriptor compositeDescriptor = descriptor.composite().descriptor();
            Iterable<Class<?>> compositeType = compositeDescriptor.types();
            Class<?> mixinMethodClass = descriptor.descriptor().method().getDeclaringClass();
            for( Class<?> compositeClass : compositeType )
            {
                if( mixinMethodClass.isAssignableFrom( compositeClass ) )
                {
View Full Code Here

                final Class<?> vTypeClass = (Class<?>) vType;
                if( ( (Class<?>) vType ).isInterface() )
                {
                    for( CompositeDescriptorInfo descInfo : vDescriptors )
                    {
                        CompositeDescriptor desc = descInfo.composite;
                        if( desc instanceof ValueDescriptor )
                        {
                            ValueDescriptor vDesc = (ValueDescriptor) desc;
                            // TODO this doesn't understand, say, Map<String, String>, or indeed,
                            // any
View Full Code Here

                {
                    thisResult = ( (ModuleDescriptor) visited ).name().equals( moduleName );
                }
                else if( descriptorClass.isAssignableFrom( visited.getClass() ) )
                {
                    CompositeDescriptor desc = (CompositeDescriptor) visited;
                    if( classNames.equals( new HashSet<>( Iterables.toList( Iterables.map(
                        new Function<Class<?>, String>()
                        {
                            @Override
                            public String map( Class<?> from )
                            {
                                return from.getName();
                            }
                        }, desc.types() ) ) ) ) )
                    {
                        result[0] = desc;
                        thisResult = false;
                    }
                }
View Full Code Here

            writeString( "- class: " + descriptor.toString() );
            writeString( "- visibility: " + descriptor.visibility().toString() );
        }
        else if( objectDesciptor instanceof CompositeDetailDescriptor )
        {
            CompositeDescriptor descriptor = ( (CompositeDetailDescriptor) objectDesciptor ).descriptor();
            writeString( "- name: " + descriptor.toString() );
            writeString( "- class: " + descriptor.toString() );
            writeString( "- visibility: " + descriptor.visibility().toString() );
        }
    }
View Full Code Here

                rows.add( new TableRow( 2, moduleRow, ( (ObjectDetailDescriptor) objectDesciptor ).module() ) );
                rows.add( new TableRow( 2, layerRow, ( (ObjectDetailDescriptor) objectDesciptor ).module().layer() ) );
            }
            else if( objectDesciptor instanceof CompositeDetailDescriptor )
            {
                CompositeDescriptor descriptor = ( (CompositeDetailDescriptor) objectDesciptor ).descriptor();
                Class<?> type = first( descriptor.types() );
                rows.add( new TableRow( 2, nameRow, type.getSimpleName() ) );
                rows.add( new TableRow( 2, classRow, type.getName() ) );
                rows.add( new TableRow( 2, visibilityRow, descriptor.visibility().toString() ) );
                rows.add( new TableRow( 2, moduleRow, ( (CompositeDetailDescriptor) objectDesciptor ).module() ) );
                rows.add( new TableRow( 2, layerRow, ( (CompositeDetailDescriptor) objectDesciptor ).module().layer() ) );
            }

            fireTableDataChanged();
View Full Code Here

TOP

Related Classes of org.qi4j.api.composite.CompositeDescriptor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.