Examples of injectionAnnotation()


Examples of org.qi4j.api.composite.DependencyDescriptor.injectionAnnotation()

    private void collectInInjectedField( Iterable<InjectedFieldDetailDescriptor> iter, Object ownerDescriptor )
    {
        for( InjectedFieldDetailDescriptor descriptorField : iter )
        {
            DependencyDescriptor dependencyDescriptor = descriptorField.descriptor().dependency();
            Annotation annotation = dependencyDescriptor.injectionAnnotation();

            Class<? extends Annotation> clazz = annotation.annotationType();
            if( Uses.class.equals( clazz ) || Service.class.equals( clazz ) )
            {
                boolean used = false;
View Full Code Here

Examples of org.qi4j.api.composite.DependencyDescriptor.injectionAnnotation()

    private void reload( Iterable<InjectedFieldDetailDescriptor> iter )
    {
        for( InjectedFieldDetailDescriptor descriptor : iter )
        {
            DependencyDescriptor dependencyDescriptor = descriptor.descriptor().dependency();
            Annotation annotation = dependencyDescriptor.injectionAnnotation();

            if( isDependencyField( annotation.annotationType() ) )
            {
                fieldListModel.addElement( descriptor );
            }
View Full Code Here

Examples of org.qi4j.api.composite.DependencyDescriptor.injectionAnnotation()

        DependencyDescriptor dependencyDescriptor = descriptor.descriptor().dependency();

        classNameLabel.setText( dependencyDescriptor.injectedClass().getSimpleName() );
        classNameLabel.setToolTipText( dependencyDescriptor.injectedClass().getName() );
        annotationLabel.setText( "@" + dependencyDescriptor.injectionAnnotation().annotationType().getSimpleName() );
        optionalLabel.setText( Boolean.toString( dependencyDescriptor.optional() ) );
        injectionTypeLabel.setText( Classes.simpleGenericNameOf( dependencyDescriptor.injectionType() ) );
        injectionTypeLabel.setToolTipText( dependencyDescriptor.injectionType().toString() );
    }
View Full Code Here

Examples of org.qi4j.api.composite.DependencyDescriptor.injectionAnnotation()

        setFont( normalFont, normalFontSize );
        for( InjectedFieldDetailDescriptor descriptor : iter )
        {
            DependencyDescriptor dependencyDescriptor = descriptor.descriptor().dependency();
            writeString( "- name: " + dependencyDescriptor.injectedClass().getSimpleName() );
            writeString( "    * annotation: @" + dependencyDescriptor.injectionAnnotation()
                .annotationType()
                .getSimpleName() );
            writeString( "    * optional: " + Boolean.toString( dependencyDescriptor.optional() ) );
            writeString( "    * type: " + dependencyDescriptor.injectionType().getClass().getSimpleName() );
        }
View Full Code Here

Examples of org.qi4j.api.composite.DependencyDescriptor.injectionAnnotation()

                layer = descriptor.module().layer().toString();
            }

            InjectedFieldDetailDescriptor injectedFieldescriptor = (InjectedFieldDetailDescriptor) row.get( 1 );
            DependencyDescriptor dependencyDescriptor = injectedFieldescriptor.descriptor().dependency();
            Annotation annotation = dependencyDescriptor.injectionAnnotation();
            usage = injectedFieldescriptor.toString() + " (@" + annotation.annotationType().getSimpleName() + ")";

            writeString( "- owner: " + row.get( 0 ).toString() );
            writeString( "    * usage: " + usage );
            writeString( "    * module: " + module );
View Full Code Here

Examples of org.qi4j.api.composite.DependencyDescriptor.injectionAnnotation()

        {
            if( value != null )
            {
                InjectedFieldDetailDescriptor descriptor = (InjectedFieldDetailDescriptor) value;
                DependencyDescriptor dependencyDescriptor = descriptor.descriptor().dependency();
                Annotation annotation = dependencyDescriptor.injectionAnnotation();
                value = descriptor.toString() + " (@" + annotation.annotationType().getSimpleName() + ")";
            }

            return super.getTableCellRendererComponent( table, value, isSelected, hasFocus, row, column );
        }
View Full Code Here

Examples of org.qi4j.api.composite.DependencyDescriptor.injectionAnnotation()

                    else if( visited instanceof DependencyDescriptor )
                    {
                        DependencyDescriptor descriptor = (DependencyDescriptor) visited;
                        Node node = document.createElement( "dependency" );

                        addAttribute( "annotation", descriptor.injectionAnnotation().toString(), node );
                        addAttribute( "injection", descriptor.injectionType().toString(), node );
                        addAttribute( "optional", Boolean.toString( descriptor.optional() ), node );

                        current.push( node );
                    }
View Full Code Here

Examples of org.qi4j.api.composite.DependencyDescriptor.injectionAnnotation()

                    if( visited instanceof DependencyDescriptor )
                    {
                        DependencyDescriptor descriptor = (DependencyDescriptor) visited;
                        element = document.createElement( "dependency" );

                        addAttribute( "annotation", descriptor.injectionAnnotation().toString(), element );
                        addAttribute( "injection", descriptor.injectionType().toString(), element );
                        addAttribute( "optional", Boolean.toString( descriptor.optional() ), element );
                    }
                    else
                    {
View Full Code Here

Examples of org.qi4j.api.composite.MethodDescriptor.injectionAnnotation()

                    else if( visited instanceof DependencyDescriptor )
                    {
                        DependencyDescriptor descriptor = (DependencyDescriptor) visited;
                        Node node = document.createElement( "dependency" );

                        addAttribute( "annotation", descriptor.injectionAnnotation().toString(), node );
                        addAttribute( "injection", descriptor.injectionType().toString(), node );
                        addAttribute( "optional", Boolean.toString( descriptor.optional() ), node );

                        current.push( node );
                    }
View Full Code Here

Examples of org.qi4j.api.composite.MethodDescriptor.injectionAnnotation()

                    if( visited instanceof DependencyDescriptor )
                    {
                        DependencyDescriptor descriptor = (DependencyDescriptor) visited;
                        element = document.createElement( "dependency" );

                        addAttribute( "annotation", descriptor.injectionAnnotation().toString(), element );
                        addAttribute( "injection", descriptor.injectionType().toString(), element );
                        addAttribute( "optional", Boolean.toString( descriptor.optional() ), element );
                    }
                    else
                    {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.