C# Class Spring.Data.GemFire.CacheFactoryObject

Factory used for configuring a Gemfire Cache manager. Allows either retrieval of an existing, opened cache or the creation of a new one.
This class implements the IPersistenceExceptionTranslator interface, as auto-detected by Spring's PersistenceExceptionTranslationPostProcessor for AOP-based translation of native exceptions to Spring DataAccessExceptions. Hence, the presence of this class automatically enables a PersistenceExceptionTranslationPostProcessor to translate GemFire exceptions.
Inheritance: IDisposable, IInitializingObject, IObjectNameAware, IFactoryObject, IPersistenceExceptionTranslator
Datei anzeigen Open project: spring-projects/spring-gemfire-net

Protected Properties

Property Type Description
log ILog

Public Methods

Method Description
AfterPropertiesSet ( ) : void

Initialization callback called by Spring. Responsible for connecting to the distributed system and creating the cache.

Dispose ( ) : void

Closes the cache and disconnects from the distributed system.

GetObject ( ) : object

Returns the cache object

TranslateExceptionIfPossible ( Exception ex ) : Spring.Dao.DataAccessException

Translate the given exception thrown by a persistence framework to a corresponding exception from Spring's generic DataAccessException hierarchy, if possible.

Do not translate exceptions that are not understand by this translator: for example, if coming from another persistence framework, or resulting from user code and unrelated to persistence.

Of particular importance is the correct translation to T:Spring.Dao.DataIntegrityViolationException for example on constraint violation. Implementations may use Spring ADO.NET Framework's sophisticated exception translation to provide further information in the event of SQLException as a root cause.

Private Methods

Method Description
MergePropertes ( ) : GemStone.GemFire.Cache.Properties

Method Details

AfterPropertiesSet() public method

Initialization callback called by Spring. Responsible for connecting to the distributed system and creating the cache.
public AfterPropertiesSet ( ) : void
return void

Dispose() public method

Closes the cache and disconnects from the distributed system.
public Dispose ( ) : void
return void

GetObject() public method

Returns the cache object
public GetObject ( ) : object
return object

TranslateExceptionIfPossible() public method

Translate the given exception thrown by a persistence framework to a corresponding exception from Spring's generic DataAccessException hierarchy, if possible.

Do not translate exceptions that are not understand by this translator: for example, if coming from another persistence framework, or resulting from user code and unrelated to persistence.

Of particular importance is the correct translation to T:Spring.Dao.DataIntegrityViolationException for example on constraint violation. Implementations may use Spring ADO.NET Framework's sophisticated exception translation to provide further information in the event of SQLException as a root cause.

public TranslateExceptionIfPossible ( Exception ex ) : Spring.Dao.DataAccessException
ex System.Exception The exception thrown.
return Spring.Dao.DataAccessException

Property Details

log protected_oe static_oe property

protected static ILog log
return ILog