C# 클래스 StructureMap.Graph.PluginFamily

Conceptually speaking, a PluginFamily object represents a point of abstraction or variability in the system. A PluginFamily defines a CLR Type that StructureMap can build, and all of the possible Plugin’s implementing the CLR Type.
상속: HasLifecycle, IDisposable
파일 보기 프로젝트 열기: structuremap/structuremap 1 사용 예제들

공개 메소드들

메소드 설명
AddInstance ( StructureMap.Pipeline.Instance instance ) : void

Add an additional Instance to this PluginFamily/PluginType

AddType ( Type concreteType ) : void

Add a single concrete type as a new Instance with a derived name. Is idempotent.

AddType ( Type concreteType, string name ) : void

Adds a new Instance for the concreteType with a name

CreateTemplatedClone ( Type templateTypes ) : PluginFamily

If the PluginType is an open generic type, this method will create a closed type copy of this PluginFamily

GetDefaultInstance ( ) : StructureMap.Pipeline.Instance

Determine the default instance if it can. May return null.

GetInstance ( string name ) : StructureMap.Pipeline.Instance

Find a named instance for this PluginFamily

PluginFamily ( Type pluginType ) : System
RemoveAll ( ) : void

Removes all Instances and resets the default Instance determination

RemoveInstance ( StructureMap.Pipeline.Instance instance ) : void

completely removes an Instance from a PluginFamily

SetDefault ( StructureMap.Pipeline.Instance instance ) : void

Sets the default Instance.

비공개 메소드들

메소드 설명
ExplicitOverride ( Type pluginType, object @default ) : PluginFamily
IDisposable ( ) : void
PluginFamily ( Type pluginType, object @default ) : System
assertInstanceIsValidForThisPluginType ( StructureMap.Pipeline.Instance instance ) : void
determineDefault ( ) : StructureMap.Pipeline.Instance
hasType ( Type concreteType ) : bool
resetDefault ( ) : void

메소드 상세

AddInstance() 공개 메소드

Add an additional Instance to this PluginFamily/PluginType
public AddInstance ( StructureMap.Pipeline.Instance instance ) : void
instance StructureMap.Pipeline.Instance
리턴 void

AddType() 공개 메소드

Add a single concrete type as a new Instance with a derived name. Is idempotent.
public AddType ( Type concreteType ) : void
concreteType System.Type
리턴 void

AddType() 공개 메소드

Adds a new Instance for the concreteType with a name
public AddType ( Type concreteType, string name ) : void
concreteType System.Type
name string
리턴 void

CreateTemplatedClone() 공개 메소드

If the PluginType is an open generic type, this method will create a closed type copy of this PluginFamily
public CreateTemplatedClone ( Type templateTypes ) : PluginFamily
templateTypes System.Type
리턴 PluginFamily

GetDefaultInstance() 공개 메소드

Determine the default instance if it can. May return null.
public GetDefaultInstance ( ) : StructureMap.Pipeline.Instance
리턴 StructureMap.Pipeline.Instance

GetInstance() 공개 메소드

Find a named instance for this PluginFamily
public GetInstance ( string name ) : StructureMap.Pipeline.Instance
name string
리턴 StructureMap.Pipeline.Instance

PluginFamily() 공개 메소드

public PluginFamily ( Type pluginType ) : System
pluginType System.Type
리턴 System

RemoveAll() 공개 메소드

Removes all Instances and resets the default Instance determination
public RemoveAll ( ) : void
리턴 void

RemoveInstance() 공개 메소드

completely removes an Instance from a PluginFamily
public RemoveInstance ( StructureMap.Pipeline.Instance instance ) : void
instance StructureMap.Pipeline.Instance
리턴 void

SetDefault() 공개 메소드

Sets the default Instance.
public SetDefault ( StructureMap.Pipeline.Instance instance ) : void
instance StructureMap.Pipeline.Instance
리턴 void