C# 클래스 Summer.Batch.Core.Scope.StepScopeSynchronization

Static class that keeps track of the dependencies in the step scope and synchronizes the proxies.
파일 보기 프로젝트 열기: SummerBatch/SummerBatch 1 사용 예제들

공개 메소드들

메소드 설명
AddProxy ( Type type, string name, IProxyObject proxy ) : void

Adds a new proxy for a dependency in the step scope.

AddStepScopeDependency ( Type registeredType, string name, IUnityContainer container, Type mappedType ) : void

Adds a new dependency in the step scope.

GetInstance ( IProxyObject proxy ) : object

Retrieves the instance of a proxy. If an instance has been cached it is returned, otherwise a new one is resolved using the Unity container.

GetMappedType ( Type registeredType, string name ) : Type

Get mapped type for registered type and given name.

IsStepScope ( Type type, string name ) : bool

Checks if a dependency is in the step scope.

RemoveScopeDependency ( Type type, string name ) : void

Removes a dependency from the step scope.

ResetInstances ( ) : void

Resets the instances cache to force resolving new instances when a step changes.

비공개 메소드들

메소드 설명
RegisterDestructionCallback ( string>.Tuple key, object instance ) : void

메소드 상세

AddProxy() 공개 정적인 메소드

Adds a new proxy for a dependency in the step scope.
public static AddProxy ( Type type, string name, IProxyObject proxy ) : void
type System.Type the type of the dependency
name string the name of the dependency, or null if it has no name
proxy IProxyObject the new proxy
리턴 void

AddStepScopeDependency() 공개 정적인 메소드

Adds a new dependency in the step scope.
public static AddStepScopeDependency ( Type registeredType, string name, IUnityContainer container, Type mappedType ) : void
registeredType System.Type the type of the dependency
name string the name of the dependency, or null if it has no name
container IUnityContainer the container to use for resolving the dependency
mappedType System.Type the actual type that will be resolved
리턴 void

GetInstance() 공개 정적인 메소드

Retrieves the instance of a proxy. If an instance has been cached it is returned, otherwise a new one is resolved using the Unity container.
public static GetInstance ( IProxyObject proxy ) : object
proxy IProxyObject the proxy to get the instance for
리턴 object

GetMappedType() 공개 정적인 메소드

Get mapped type for registered type and given name.
public static GetMappedType ( Type registeredType, string name ) : Type
registeredType System.Type
name string
리턴 System.Type

IsStepScope() 공개 정적인 메소드

Checks if a dependency is in the step scope.
public static IsStepScope ( Type type, string name ) : bool
type System.Type the type of the dependency
name string the name of the dependency, or null if it has no name
리턴 bool

RemoveScopeDependency() 공개 정적인 메소드

Removes a dependency from the step scope.
public static RemoveScopeDependency ( Type type, string name ) : void
type System.Type the type of the dependency
name string the name of the dependency, or null if it has no name
리턴 void

ResetInstances() 공개 정적인 메소드

Resets the instances cache to force resolving new instances when a step changes.
public static ResetInstances ( ) : void
리턴 void