Examples of AnnotatedElementMap


Examples of org.apache.beehive.controls.api.properties.AnnotatedElementMap

                     && annReader.getAnnotation( field.getName(), CONTROL_ANNOTATION_CLASSNAME ) != null )
                {
                    if ( accessPrivateFields || ! Modifier.isPrivate( modifiers ) )
                    {
                        if ( ! Modifier.isPublic( field.getModifiers() ) ) field.setAccessible( true );
                        ret.put( field, new AnnotatedElementMap( field ) );
                        fieldNames.add( fieldName );
                    }
                }
            }
   
View Full Code Here

Examples of org.apache.beehive.controls.api.properties.AnnotatedElementMap

     * The default implementation of getBeanAnnotationMap.  This returns a map based purely
     * upon annotation reflection
     */
    protected PropertyMap getBeanAnnotationMap(ControlBean bean, AnnotatedElement annotElem)
    {
        PropertyMap map = new AnnotatedElementMap(annotElem);

        // REVIEW: is this the right place to handle the general control client case?
        if ( bean != null )
            setDelegateMap( map, bean, annotElem );
       
View Full Code Here

Examples of org.apache.beehive.controls.api.properties.AnnotatedElementMap

     * Returns the annotation map for the specified element.
     */
    public static PropertyMap getAnnotationMap(ControlBeanContext cbc, AnnotatedElement annotElem)
    {
        if ( cbc == null )
            return new AnnotatedElementMap(annotElem);

        return cbc.getAnnotationMap(annotElem);
    }
View Full Code Here

Examples of org.apache.beehive.controls.api.properties.AnnotatedElementMap

    protected Expression instantiate(Object oldInstance, Encoder out)
    {
        //
        // Modify the default constructor to pass in the AnnotatedElement wrapped by the map
        //
        AnnotatedElementMap aem = (AnnotatedElementMap)oldInstance;
        return new Expression(aem, aem.getClass(), "new",
                              new Object [] { aem.getAnnotatedElement() });
    }
View Full Code Here

Examples of org.apache.beehive.controls.api.properties.AnnotatedElementMap

        // that was derived from an AnnotatedElement so this relationship (and any associated
        // external config delegates) will be restored as part of the decoding process.
        //
        // BUGBUG: What about a user-created PropertyMap that was passed into the constructor?
        //
        AnnotatedElementMap aem = null;
        PropertyMap pMap = control.getPropertyMap();
        while (pMap != null)
        {
            if (pMap instanceof AnnotatedElementMap)
            {
                aem = (AnnotatedElementMap)pMap;

                //
                // Ignore a class-valued AnnotationElementMap.. this just refers to the
                // Control type, and will be automatically reassociated at construction
                // time
                //
                if (aem.getAnnotatedElement() instanceof Class)
                    aem = null;

                xmlOut.setPersistenceDelegate(AnnotatedElementMap.class,
                                              new AnnotatedElementMapPersistenceDelegate());
View Full Code Here

Examples of org.apache.beehive.controls.api.properties.AnnotatedElementMap

                     && annReader.getAnnotation( field.getName(), CONTROL_ANNOTATION_CLASSNAME ) != null )
                {
                    if ( accessPrivateFields || ! Modifier.isPrivate( modifiers ) )
                    {
                        field.setAccessible( true );
                        ret.put( field, new AnnotatedElementMap( field ) );
                        fieldNames.add( fieldName );
                    }
                }
            }
   
View Full Code Here

Examples of org.apache.beehive.controls.api.properties.AnnotatedElementMap

        // that was derived from an AnnotatedElement so this relationship (and any associated
        // external config delegates) will be restored as part of the decoding process.
        //
        // BUGBUG: What about a user-created PropertyMap that was passed into the constructor?
        //
        AnnotatedElementMap aem = null;
        PropertyMap pMap = control.getPropertyMap();
        while (pMap != null)
        {
            if (pMap instanceof AnnotatedElementMap)
            {
                aem = (AnnotatedElementMap)pMap;

                //
                // Ignore a class-valued AnnotationElementMap.. this just refers to the
                // Control type, and will be automatically reassociated at construction
                // time
                //
                if (aem.getAnnotatedElement() instanceof Class)
                    aem = null;

                xmlOut.setPersistenceDelegate(AnnotatedElementMap.class,
                                              new AnnotatedElementMapPersistenceDelegate());
View Full Code Here

Examples of org.apache.beehive.controls.api.properties.AnnotatedElementMap

     * The default implementation of getBeanAnnotationMap.  This returns a map based purely
     * upon annotation reflection
     */
    protected PropertyMap getBeanAnnotationMap(ControlBean bean, AnnotatedElement annotElem)
    {
        PropertyMap map = new AnnotatedElementMap(annotElem);

        // REVIEW: is this the right place to handle the general control client case?
        if ( bean != null )
            setDelegateMap( map, bean, annotElem );
       
View Full Code Here

Examples of org.apache.beehive.controls.api.properties.AnnotatedElementMap

                     && annReader.getAnnotation( field.getName(), CONTROL_ANNOTATION_CLASSNAME ) != null )
                {
                    if ( accessPrivateFields || ! Modifier.isPrivate( modifiers ) )
                    {
                        if ( ! Modifier.isPublic( field.getModifiers() ) ) field.setAccessible( true );
                        ret.put( field, new AnnotatedElementMap( field ) );
                        fieldNames.add( fieldName );
                        if (LOG.isDebugEnabled()) {
                            LOG.debug("Found control field " + fieldName + " in control client class "
                                       + controlClientClass.getName());
                        }
View Full Code Here

Examples of org.apache.beehive.controls.api.properties.AnnotatedElementMap

                if ( ! fieldNames.contains( fieldName ) && ! Modifier.isStatic( modifiers )
                     && annReader.getAnnotation( field.getName(), CONTROL_ANNOTATION_CLASSNAME ) != null )
                {
                    if ( ! Modifier.isPublic( field.getModifiers() ) ) field.setAccessible( true );
                    ret.put( field, new AnnotatedElementMap( field ) );
                    fieldNames.add( fieldName );
                    if(LOG.isDebugEnabled())
                        LOG.debug("Found control field " + fieldName + " in control client class "
                                  + controlClientClass.getName());
                }
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.