org.jboss.weld.environment.se.discovery.url
Class WeldSEResourceLoader

java.lang.Object
  extended by org.jboss.weld.environment.se.discovery.url.WeldSEResourceLoader
All Implemented Interfaces:
org.jboss.weld.bootstrap.api.Service, org.jboss.weld.resources.spi.ResourceLoader

public class WeldSEResourceLoader
extends Object
implements org.jboss.weld.resources.spi.ResourceLoader

A simple resource loader.

Uses WeldSEResourceLoader's classloader if the Thread Context Classloader isn't available

Author:
Pete Muir

Field Summary
 
Fields inherited from interface org.jboss.weld.resources.spi.ResourceLoader
PROPERTY_NAME
 
Constructor Summary
WeldSEResourceLoader()
           
 
Method Summary
 Class<?> classForName(String name)
           
 void cleanup()
           
static ClassLoader getClassLoader()
           
 URL getResource(String name)
           
 Collection<URL> getResources(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WeldSEResourceLoader

public WeldSEResourceLoader()
Method Detail

classForName

public Class<?> classForName(String name)
Specified by:
classForName in interface org.jboss.weld.resources.spi.ResourceLoader

getResource

public URL getResource(String name)
Specified by:
getResource in interface org.jboss.weld.resources.spi.ResourceLoader

getResources

public Collection<URL> getResources(String name)
Specified by:
getResources in interface org.jboss.weld.resources.spi.ResourceLoader

cleanup

public void cleanup()
Specified by:
cleanup in interface org.jboss.weld.bootstrap.api.Service

getClassLoader

public static ClassLoader getClassLoader()


Copyright © 2013 Seam Framework. All Rights Reserved.