Examples of IDataSourceProducer


Examples of fr.soleil.data.service.IDataSourceProducer

                        }

                        String logMessage = "connection failed for";

                        // First, Connect plugins
                        final IDataSourceProducer producer = DataSourceProducerProvider
                                .getProducer(key.getSourceProduction());

                        initPlugins(producer, source, widget);

                        computeDefaultToolTip(widget, key);
View Full Code Here

Examples of fr.soleil.data.service.IDataSourceProducer

     * @return the desired source
     */
    @SuppressWarnings("unchecked")
    protected static <U> AbstractDataSource<U> getSource(final IKey key) {
        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(
                    Level.SEVERE,
                    "Failed to create source for key: "
View Full Code Here

Examples of fr.soleil.data.service.IDataSourceProducer

     * @return the desired source
     */
    @SuppressWarnings("unchecked")
    protected static <U> AbstractDataSource<U> getSource(final IKey key) {
        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(
                    Level.SEVERE,
                    "Failed to create source for key: "
View Full Code Here

Examples of fr.soleil.data.service.IDataSourceProducer

        }
    }

    public void setRefreshTime(int refreshTime) {
        this.refreshTime = refreshTime;
        IDataSourceProducer producer = DataSourceProducerProvider
        .getProducer(TangoDataSourceFactory.SOURCE_PRODUCER_ID);
        // Do not supporte the refreshing service under 1000 ms
        if (refreshTime > 1000) {
            if (producer instanceof AbstractRefreshingManager<?>) {
                ((AbstractRefreshingManager<?>) producer).setDefaultRefreshingStrategy(new PolledRefreshingStrategy(
View Full Code Here

Examples of fr.soleil.data.service.IDataSourceProducer

        boolean result = false;

        if (widget != null && key != null) {

            try {
                IDataSourceProducer producer = DataSourceProducerProvider.getProducer(key
                        .getSourceProduction());

                AbstractDataSource<U> source = null;
                if (producer != null) {
                    source = initSource(key, producer);
View Full Code Here

Examples of fr.soleil.data.service.IDataSourceProducer

     * @return true if the source is creatable, false otherwise
     */
    public static boolean isSourceCreatable(IKey key) {
        boolean result = false;
        if (key != null) {
            IDataSourceProducer producer = DataSourceProducerProvider.getProducer(key
                    .getSourceProduction());
            try {
                AbstractDataSource<?> source = initSource(key, producer);
                result = (source != null);
                source = null;
View Full Code Here

Examples of fr.soleil.data.service.IDataSourceProducer

                        }

                        String logMessage = "connection failed for";

                        // First, Connect plugins
                        final IDataSourceProducer producer = DataSourceProducerProvider
                                .getProducer(key.getSourceProduction());

                        if (withPlugins) {
                            initPlugins(producer, source, target);
                        }
View Full Code Here

Examples of fr.soleil.data.service.IDataSourceProducer

     * @return the desired source
     */
    @SuppressWarnings("unchecked")
    protected static <U> AbstractDataSource<U> getSource(final IKey key) {
        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(
                    Level.SEVERE,
                    "Failed to create source for key: "
View Full Code Here

Examples of fr.soleil.data.service.IDataSourceProducer

                        result = controller.addLink(source, connectedTarget);

                        String logMessage = "connection failed for";
                        if (result) {

                            final IDataSourceProducer producer = DataSourceProducerProvider
                                    .getProducer(key.getSourceProduction());

                            initPlugins(producer, source, widget);

                            computeDefaultToolTip(widget, key);
View Full Code Here

Examples of fr.soleil.data.service.IDataSourceProducer

     * @return the desired source
     */
    @SuppressWarnings("unchecked")
    protected static <U> AbstractDataSource<U> getSource(final IKey key) {
        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) {
            e.printStackTrace();
        }

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.