Package org.apache.beehive.controls.api.properties

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


     * 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

     * 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

    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

TOP

Related Classes of org.apache.beehive.controls.api.properties.AnnotatedElementMap

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.