Package org.jboss.seam.contexts

Examples of org.jboss.seam.contexts.WebApplicationContext


      loadResourceProviders();
   }

   protected void loadResourceProviders()
   {
      Context tempApplicationContext = new WebApplicationContext(context);

      Init init = (Init) tempApplicationContext.get(Init.class);
      for (String name : init.getResourceProviders())
      {
         AbstractResource provider = (AbstractResource) tempApplicationContext.get(name);
         if (provider != null)
         {
            provider.setServletContext(context);
            providers.put(provider.getResourcePath(), provider);
         }
View Full Code Here


      }
   }

   public void init(FilterConfig filterConfig) throws ServletException
   {
      Context tempApplicationContext = new WebApplicationContext( filterConfig.getServletContext() );
      Init init = (Init) tempApplicationContext.get(Init.class);
      for ( String filterName: init.getInstalledFilters() )
      {
         Filter filter = (Filter) tempApplicationContext.get(filterName);
         log.info( "Initializing filter: " + filterName );
         filter.init(filterConfig);
         filters.add(filter);
      }
   }
View Full Code Here

TOP

Related Classes of org.jboss.seam.contexts.WebApplicationContext

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.