Examples of KeyCompatibilityException


Examples of fr.soleil.data.exception.KeyCompatibilityException

        AbstractDataSource<U> result = null;
        final IDataSourceProducer producer = DataSourceProducerProvider.getProducer(key
                .getSourceProduction());
        try {
            if (producer == null) {
                throw new KeyCompatibilityException(key, producer);
            }
            else if (producer instanceof AbstractRefreshingManager<?>) {
                result = (AbstractDataSource<U>) ((AbstractRefreshingManager<?>) producer)
                        .createDataSource(key, false, readImmediately);
            }
View Full Code Here

Examples of fr.soleil.data.exception.KeyCompatibilityException

    protected static <U> AbstractDataSource<U> getSource(final IKey key, boolean readImmediately) {
        AbstractDataSource<U> result = null;
        final IDataSourceProducer producer = DataSourceProducerProvider.getProducer(key.getSourceProduction());
        try {
            if (producer == null) {
                throw new KeyCompatibilityException(key, producer);
            } else if (producer instanceof AbstractRefreshingManager<?>) {
                result = (AbstractDataSource<U>) ((AbstractRefreshingManager<?>) producer).createDataSource(key, false,
                        readImmediately);
            } else {
                result = (AbstractDataSource<U>) producer.createDataSource(key);
View Full Code Here

Examples of fr.soleil.data.exception.KeyCompatibilityException

        if (result == null) {
            IDataSourceProducer producer = DataSourceProducerProvider.getProducer(key
                    .getSourceProduction());
            try {
                if (producer == null) {
                    throw new KeyCompatibilityException(key, producer);
                }
                result = initSource(key, producer);
                createdSource.put(key, result);
            }
            catch (Exception e) {
View Full Code Here

Examples of fr.soleil.data.exception.KeyCompatibilityException

        AbstractDataSource<U> result = null;
        final IDataSourceProducer producer = DataSourceProducerProvider.getProducer(key
                .getSourceProduction());
        try {
            if (producer == null) {
                throw new KeyCompatibilityException(key, producer);
            }
            result = (AbstractDataSource<U>) producer.createDataSource(key);
        }
        catch (final Exception e) {
            Logger.getLogger(Mediator.LOGGER_ACCESS).log(
View Full Code Here

Examples of fr.soleil.data.exception.KeyCompatibilityException

        AbstractDataSource<U> result = null;
        if (key != null) {
            final IDataSourceProducer producer = DataSourceProducerProvider.getProducer(key.getSourceProduction());
            try {
                if (producer == null) {
                    throw new KeyCompatibilityException(key, producer);
                } else if (producer instanceof IConstantSourceProducer) {
                    IConstantSourceProducer constantSourceProducer = (IConstantSourceProducer) producer;
                    AbstractDataSource<U> former = (AbstractDataSource<U>) constantSourceProducer
                            .getExistingSource(key);
                    if (producer instanceof AbstractRefreshingManager<?>) {
View Full Code Here

Examples of fr.soleil.data.exception.KeyCompatibilityException

        AbstractDataSource<U> result = null;
        final IDataSourceProducer producer = DataSourceProducerProvider.getProducer(key
                .getSourceProduction());
        try {
            if (producer == null) {
                throw new KeyCompatibilityException(key, producer);
            }
            result = (AbstractDataSource<U>) producer.createDataSource(key);
        }
        catch (final Exception e) {
            Logger.getLogger(Mediator.LOGGER_ACCESS).log(
View Full Code Here

Examples of fr.soleil.data.exception.KeyCompatibilityException

        AbstractDataSource<U> result = null;
        final IDataSourceProducer producer = DataSourceProducerProvider.getProducer(key
                .getSourceProduction());
        try {
            if (producer == null) {
                throw new KeyCompatibilityException(key, producer);
            }
            result = (AbstractDataSource<U>) producer.createDataSource(key);
        }
        catch (final Exception e) {
            Logger.getLogger(Mediator.LOGGER_ACCESS).log(
View Full Code Here

Examples of fr.soleil.data.exception.KeyCompatibilityException

        if (result == null) {
            IDataSourceProducer producer = DataSourceProducerProvider.getProducer(key
                    .getSourceProduction());
            try {
                if (producer == null) {
                    throw new KeyCompatibilityException(key, producer);
                }
                result = initSource(key, producer);
                createdSource.put(key, result);
            }
            catch (Exception e) {
View Full Code Here

Examples of fr.soleil.data.exception.KeyCompatibilityException

        AbstractDataSource<U> result = null;
        final IDataSourceProducer producer = DataSourceProducerProvider.getProducer(key
                .getSourceProduction());
        try {
            if (producer == null) {
                throw new KeyCompatibilityException(key, producer);
            }
            result = (AbstractDataSource<U>) producer.createDataSource(key);
        }
        catch (final Exception e) {
            Logger.getLogger(Mediator.LOGGER_ACCESS).log(
View Full Code Here

Examples of fr.soleil.data.exception.KeyCompatibilityException

        AbstractDataSource<U> result = null;
        final IDataSourceProducer producer = DataSourceProducerProvider.getProducer(key
                .getSourceProduction());
        try {
            if (producer == null) {
                throw new KeyCompatibilityException(key, producer);
            }
            else if (producer instanceof AbstractRefreshingManager<?>) {
                result = (AbstractDataSource<U>) ((AbstractRefreshingManager<?>) producer)
                        .createDataSource(key, false, readImmediately);
            }
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.