Examples of ApplicationResource


Examples of com.googlecode.psiprobe.model.ApplicationResource

            appResources = resolver.getApplicationResources(context);
        } catch (NamingException e) {
            throw new RuntimeException(e);
        }
        for (Iterator it = appResources.iterator(); it.hasNext();) {
            ApplicationResource appResource = (ApplicationResource) it.next();
            if (appResource.getDataSourceInfo() != null) {
                scores[0] = Math.max(scores[0], appResource.getDataSourceInfo().getBusyScore());
                scores[1] = Math.max(scores[1], appResource.getDataSourceInfo().getEstablishedScore());
            }
        }
        return scores;
    }
View Full Code Here

Examples of com.googlecode.psiprobe.model.ApplicationResource

        return new ModelAndView(getViewName(), "dataSourceGroups", dataSourceGroups);
    }

    protected void filterValidDataSources(List resources, List dataSources) {
        for (Iterator i = resources.iterator(); i.hasNext(); ) {
            ApplicationResource res = (ApplicationResource) i.next();
            if (res.isLookedUp()
                    && res.getDataSourceInfo() != null
                    && res.getDataSourceInfo().getJdbcURL() != null) {
                dataSources.add(res.getDataSourceInfo());
            }
        }
    }
View Full Code Here

Examples of com.vaadin.terminal.ApplicationResource

        if (this.context.isApplicationResourceURL(context, relativeUri)) {

            // Handles the resource request
            final String key = this.context.getURLKey(context, relativeUri);
            final ApplicationResource resource = keyResourceMap.get(key);
            if (resource != null) {
                DownloadStream stream = resource.getStream();
                if (stream != null) {
                    stream.setCacheTime(resource.getCacheTime());
                    return stream;
                } else {
                    return null;
                }
            } else {
View Full Code Here

Examples of com.vaadin.terminal.ApplicationResource

        if (value instanceof ExternalResource) {
            addAttribute(name, ((ExternalResource) value).getURL());

        } else if (value instanceof ApplicationResource) {
            final ApplicationResource r = (ApplicationResource) value;
            final Application a = r.getApplication();
            if (a == null) {
                throw new PaintException(
                        "Application not specified for resorce "
                                + value.getClass().getName());
            }
View Full Code Here

Examples of com.vaadin.terminal.ApplicationResource

    @SuppressWarnings("serial")
    @Override
    public Resource getSource() {
        if (res == null) {
            res = new ApplicationResource() {

                private ByteArrayInputStream bytestream = null;

                ByteArrayInputStream getByteStream() {
                    if (chart != null && bytestream == null) {
View Full Code Here

Examples of com.vaadin.terminal.ApplicationResource

        if (value instanceof ExternalResource) {
            addAttribute(name, ((ExternalResource) value).getURL());

        } else if (value instanceof ApplicationResource) {
            final ApplicationResource r = (ApplicationResource) value;
            final Application a = r.getApplication();
            if (a == null) {
                throw new PaintException(
                        "Application not specified for resorce "
                                + value.getClass().getName());
            }
View Full Code Here

Examples of com.vaadin.terminal.ApplicationResource

        if (this.context.isApplicationResourceURL(context, relativeUri)) {

            // Handles the resource request
            final String key = this.context.getURLKey(context, relativeUri);
            final ApplicationResource resource = keyResourceMap.get(key);
            if (resource != null) {
                DownloadStream stream = resource.getStream();
                if (stream != null) {
                    stream.setCacheTime(resource.getCacheTime());
                    return stream;
                } else {
                    return null;
                }
            } else {
View Full Code Here

Examples of com.vaadin.terminal.ApplicationResource

        if (value instanceof ExternalResource) {
            addAttribute(name, ((ExternalResource) value).getURL());

        } else if (value instanceof ApplicationResource) {
            final ApplicationResource r = (ApplicationResource) value;
            final Application a = r.getApplication();
            if (a == null) {
                throw new PaintException(
                        "Application not specified for resorce "
                                + value.getClass().getName());
            }
View Full Code Here

Examples of com.vaadin.terminal.ApplicationResource

        if (this.context.isApplicationResourceURL(context, relativeUri)) {

            // Handles the resource request
            final String key = this.context.getURLKey(context, relativeUri);
            final ApplicationResource resource = keyResourceMap.get(key);
            if (resource != null) {
                DownloadStream stream = resource.getStream();
                if (stream != null) {
                    stream.setCacheTime(resource.getCacheTime());
                    return stream;
                } else {
                    return null;
                }
            } else {
View Full Code Here

Examples of com.vaadin.terminal.ApplicationResource

        if (this.context.isApplicationResourceURL(context, relativeUri)) {

            // Handles the resource request
            final String key = this.context.getURLKey(context, relativeUri);
            final ApplicationResource resource = keyResourceMap.get(key);
            if (resource != null) {
                DownloadStream stream = resource.getStream();
                if (stream != null) {
                    stream.setCacheTime(resource.getCacheTime());
                    return stream;
                } else {
                    return null;
                }
            } else {
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.