org.webmacro.resource
Class ConfigProvider

java.lang.Object
  |
  +--org.webmacro.resource.ConfigProvider
All Implemented Interfaces:
Provider

public class ConfigProvider
extends java.lang.Object
implements Provider

A very simple provider which simply takes the config information passed to it by the broker and returns it.


Constructor Summary
ConfigProvider()
           
 
Method Summary
 void destroy()
          Close down this provider, freeing any allocated resources.
 void flush()
          Clear any cache this provider may be maintaining
 java.lang.Object get(java.lang.String key)
          Get the object associated with the specified query
 java.lang.String getType()
          Return an array representing the types this provider serves up
 void init(Broker b, Settings config)
          Initialize this provider based on the specified config.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigProvider

public ConfigProvider()
Method Detail

getType

public java.lang.String getType()
Description copied from interface: Provider
Return an array representing the types this provider serves up
Specified by:
getType in interface Provider

init

public void init(Broker b,
                 Settings config)
          throws InitException
Description copied from interface: Provider
Initialize this provider based on the specified config.
Specified by:
init in interface Provider

flush

public void flush()
Description copied from interface: Provider
Clear any cache this provider may be maintaining
Specified by:
flush in interface Provider

destroy

public void destroy()
Description copied from interface: Provider
Close down this provider, freeing any allocated resources.
Specified by:
destroy in interface Provider

get

public java.lang.Object get(java.lang.String key)
                     throws NotFoundException
Description copied from interface: Provider
Get the object associated with the specified query
Specified by:
get in interface Provider