Package org.exoplatform.portal.resource

Examples of org.exoplatform.portal.resource.Resource


      Loader<String, CachedJavascript, ResourceResolver> loader = new Loader<String, CachedJavascript, ResourceResolver>()
      {
         @Override
         public CachedJavascript retrieve(ResourceResolver context, String key) throws Exception
         {
            Resource resource = context.resolve(key);
            if (resource == null)
            {
               return null;
            }
           
            StringBuilder sB = new StringBuilder();
            try
            {
               BufferedReader reader = new BufferedReader(resource.read());
               String line = reader.readLine();
               try
               {
                  while (line != null)
                  {
View Full Code Here


         for (final Javascript js : commonJScripts)
         {
            if (js instanceof ExtendedJScript && js.getPath().equals(path))
            {
               final String jScript = ((ExtendedJScript)js).getScript();
               return new Resource(path)
               {
                  @Override
                  public Reader read() throws IOException
                  {
                     return new StringReader(jScript);
View Full Code Here

TOP

Related Classes of org.exoplatform.portal.resource.Resource

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.