rabbit.proxy
Class ResourceLoader

java.lang.Object
  extended by rabbit.proxy.ResourceLoader

public class ResourceLoader
extends Object

A class that can load and bind resources for jndi.

Author:
Robert Olofsson

Constructor Summary
ResourceLoader()
          Create a new ResourceLoader
 
Method Summary
 void setupResource(String name, SProperties props, HttpProxy proxy)
          Load and bind the resouce given by the given section name and properties.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceLoader

public ResourceLoader()
               throws NamingException
Create a new ResourceLoader

Throws:
NamingException - if the initial context can not be created
Method Detail

setupResource

public void setupResource(String name,
                          SProperties props,
                          HttpProxy proxy)
Load and bind the resouce given by the given section name and properties.

Parameters:
name - the name of the resource
props - the properties for the resource
proxy - the HttpProxy loading the classes