Package fr.soleil.data.service

Examples of fr.soleil.data.service.IConstantSourceProducer


            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<?>) {
                        result = (AbstractDataSource<U>) ((AbstractRefreshingManager<?>) producer).createDataSource(
                                key, false, readImmediately);
                    } else {
                        result = (AbstractDataSource<U>) producer.createDataSource(key);
                    }
                    if (forgetImmediately && (former == null)) {
                        constantSourceProducer.removeDataSource(key);
                    }
                } else {
                    result = (AbstractDataSource<U>) producer.createDataSource(key);
                }
            } catch (final Exception e) {
View Full Code Here

TOP

Related Classes of fr.soleil.data.service.IConstantSourceProducer

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.