org.sapia.regis.cache
Class CacheRegistryFactory

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

public class CacheRegistryFactory
extends java.lang.Object
implements RegistryFactory


Field Summary
static int DEFAULT_REFRESH_INTERVAL
           
static java.lang.String FACTORY_CLASS
          This constant corresponds to the property indicating the name of the registry factory class to wrap for caching.
static java.lang.String REFRESH_INTERVAL
          This constant corresponds to the property indicating the cache refresh interval, in seconds.
 
Constructor Summary
CacheRegistryFactory()
           
 
Method Summary
 Registry connect(java.util.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 java.lang.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 java.lang.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(java.util.Properties props)
                 throws java.lang.Exception
Specified by:
connect in interface RegistryFactory
Parameters:
props - the Properties to used to connect to the desired Registry.
Returns:
a Registry.
Throws:
java.lang.Exception - if a problem occurs while attempting to connect.


Copyright © 2011 Sapia OSS. All Rights Reserved.