Package com.inspiresoftware.lib.dto.geda.exception

Examples of com.inspiresoftware.lib.dto.geda.exception.GeDARuntimeException


    }

    /** {@inheritDoc} */
    public DtoContext dto(final String beanKey) {
        if (beanFactory == null) {
            throw new GeDARuntimeException("Bean factory must be specified. Use constructor DefaultDSLRegistry(BeanFactory)");
        }
        final Class representative = beanFactory.getClazz(beanKey);
        if (representative == null) {
            throw new BeanFactoryUnableToLocateRepresentationException(beanFactory.toString(), "top level", beanKey, true);
        }
View Full Code Here


    }

    /** {@inheritDoc} */
    public Class getClazz(final String entityBeanKey) {
        if (beanFactory == null) {
            throw new GeDARuntimeException("Bean factory must be specified. Use constructor DefaultDSLRegistry(BeanFactory)");
        }
        return beanFactory.getClazz(entityBeanKey);
    }
View Full Code Here

    }

    /** {@inheritDoc} */
    public Object get(final String entityBeanKey) {
        if (beanFactory == null) {
            throw new GeDARuntimeException("Bean factory must be specified. Use constructor DefaultDSLRegistry(BeanFactory)");
        }
        return beanFactory.get(entityBeanKey);
    }
View Full Code Here

    }

    /** {@inheritDoc} */
    public BeanFactory getBeanFactory() {
        if (beanFactory == null) {
            throw new GeDARuntimeException("Bean factory must be specified. Use constructor DefaultDSLRegistry(BeanFactory)");
        }
        return beanFactory;
    }
View Full Code Here

        } else if ("dtoToEntityMatcher".equals(property)) {
            return (T) annotation.dtoToEntityMatcher();
        } else if ("dtoToEntityMatcherKey".equals(property)) {
            return (T) annotation.dtoToEntityMatcherKey();
        }
        throw new GeDARuntimeException("Invalid @DtoMap annotation proxy access via property: " + property);
    }
View Full Code Here

        } else if ("dtoToEntityMatcher".equals(property)) {
            return (T) annotation.dtoToEntityMatcher();
        } else if ("dtoToEntityMatcherKey".equals(property)) {
            return (T) annotation.dtoToEntityMatcherKey();
        }
        throw new GeDARuntimeException("Invalid @DtoCollection annotation proxy access via property: " + property);
    }
View Full Code Here

        } else if ("entityBeanKeys".equals(property)) {
            return null;
        } else if ("dtoBeanKey".equals(property)) {
            return null;
        }
        throw new GeDARuntimeException("Invalid @DtoVirtualField annotation proxy access via property: " + property);
    }
View Full Code Here

        } else if ("entityBeanKeys".equals(property)) {
            return (T) annotation.entityBeanKeys();
        } else if ("dtoBeanKey".equals(property)) {
            return (T) annotation.dtoBeanKey();
        }
        throw new GeDARuntimeException("Invalid @DtoField annotation proxy access via property: " + property);
    }
View Full Code Here

        if ("value".equals(property)) {
            return (T) annotation.value();
        } else if ("retriever".equals(property)) {
            return (T) annotation.retriever();
        }
        throw new GeDARuntimeException("Invalid @DtoParent annotation proxy access via property: " + property);
    }
View Full Code Here

    /** {@inheritDoc} */
    public <T> T getValue(final String property) {
        if ("value".equals(property)) {
            return (T) annotation.value();
        }
        throw new GeDARuntimeException("Invalid @Dto annotation proxy access via property: " + property);
    }
View Full Code Here

TOP

Related Classes of com.inspiresoftware.lib.dto.geda.exception.GeDARuntimeException

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.