Package org.gatein.portal.controller.resource.script

Examples of org.gatein.portal.controller.resource.script.StaticScriptResource


                        }

                        /* amdFile is not ending with *.js */
                        /* directory.length() - 1 because we want the resourceURI to start with '/' */
                        String resourceURI = amdFile.substring(directorySlash.length() - 1, amdFileLength);
                        StaticScriptResource r = new StaticScriptResource(contextPath, directory, resourceURI, lastModified);
                        result.getStaticScriptResources().add(r);

                    }
                };
                new AmdResourceScanner(directorySlash, includes, excludes, servletContext).scan(visitor);
View Full Code Here


         *          available in {@link #staticScriptResources} as a key, a {@link DuplicateResourceKeyException} is thrown.
         */
        public ImmutableStaticScriptResourcesBuilder add(Collection<StaticScriptResource> toAdd) throws DuplicateResourceKeyException {
            for (StaticScriptResource staticScriptResource : toAdd) {
                String resourcePath = staticScriptResource.getResourcePath();
                StaticScriptResource availableValue = staticScriptResources.get(resourcePath);
                if (availableValue != null) {
                    throw new DuplicateResourceKeyException("Ignoring " + StaticScriptResource.class.getSimpleName() + " " + staticScriptResource
                            + " because the given resource path was already provided by " + availableValue);
                } else {
                    /* add only if not there already */
 
View Full Code Here

TOP

Related Classes of org.gatein.portal.controller.resource.script.StaticScriptResource

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.