org.sapia.regis.cache
Class CacheRegistryFactory

java.lang.Object
  extended by org.sapia.regis.cache.CacheRegistryFactory
All Implemented Interfaces:
RegistryFactory

public class CacheRegistryFactory
extends Object
implements RegistryFactory


Field Summary
static int DEFAULT_REFRESH_INTERVAL
           
static String FACTORY_CLASS
          This constant corresponds to the property indicating the name of the registry factory class to wrap for caching.
static String REFRESH_INTERVAL
          This constant corresponds to the property indicating the cache refresh interval, in seconds.
 
Constructor Summary
CacheRegistryFactory()
           
 
Method Summary
 Registry connect(Properties props)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FACTORY_CLASS

public static final String FACTORY_CLASS
This constant corresponds to the property indicating the name of the registry factory class to wrap for caching.

See Also:
Constant Field Values

REFRESH_INTERVAL

public static final String REFRESH_INTERVAL
This constant corresponds to the property indicating the cache refresh interval, in seconds.

See Also:
Constant Field Values

DEFAULT_REFRESH_INTERVAL

public static final int DEFAULT_REFRESH_INTERVAL
See Also:
Constant Field Values
Constructor Detail

CacheRegistryFactory

public CacheRegistryFactory()
Method Detail

connect

public Registry connect(Properties props)
                 throws Exception
Specified by:
connect in interface RegistryFactory
Parameters:
props - the Properties to used to connect to the desired Registry.
Returns:
a Registry.
Throws:
Exception - if a problem occurs while attempting to connect.


Copyright © 2006 Sapia Open Community, Inc. All Rights Reserved.