Package org.apache.commons.jelly.impl

Examples of org.apache.commons.jelly.impl.BeanSource


     */
    protected Object findBeanAncestor() throws Exception {
        Tag tag = getParent();
        if (tag != null) {
            if (tag instanceof BeanSource) {
                BeanSource beanSource = (BeanSource) tag;
                return beanSource.getBean();
            }
        }
        return tag;
    }
View Full Code Here


    public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException {
        Map attributes = getAttributes();
        Object bean = attributes.remove( "object" );
        if ( bean == null ) {
            // lets try find a parent bean
            BeanSource tag = (BeanSource) findAncestorWithClass(BeanSource.class);
            if (tag != null) {
                try {
                    bean = tag.getBean();
                } catch (JellyException e) {
                    throw new JellyTagException(e);
                }
            }
            if (bean == null) {
View Full Code Here

    public void doTag(XMLOutput output) throws MissingAttributeException, JellyTagException {
        Map attributes = getAttributes();
        Object bean = attributes.remove( "object" );
        if ( bean == null ) {
            // lets try find a parent bean
            BeanSource tag = (BeanSource) findAncestorWithClass(BeanSource.class);
            if (tag != null) {
                try {
                    bean = tag.getBean();
                } catch (JellyException e) {
                    throw new JellyTagException(e);
                }
            }
            if (bean == null) {
View Full Code Here

TOP

Related Classes of org.apache.commons.jelly.impl.BeanSource

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.