C# 클래스 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.
상속: IDisposable, IInitializingObject, IObjectNameAware, IFactoryObject, IPersistenceExceptionTranslator
파일 보기 프로젝트 열기: spring-projects/spring-gemfire-net

보호된 프로퍼티들

프로퍼티 타입 설명
log ILog

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
MergePropertes ( ) : GemStone.GemFire.Cache.Properties

메소드 상세

AfterPropertiesSet() 공개 메소드

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

Dispose() 공개 메소드

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

GetObject() 공개 메소드

Returns the cache object
public GetObject ( ) : object
리턴 object

TranslateExceptionIfPossible() 공개 메소드

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.
리턴 Spring.Dao.DataAccessException

프로퍼티 상세

log 보호되어 있는 정적으로 프로퍼티

protected static ILog log
리턴 ILog