Click or drag to resize
IClassFactory Interface
An interface for objects that implement class factory functionality.

Namespace: InterfaceFactory
Assembly: InterfaceFactory (in InterfaceFactory.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public interface IClassFactory

The IClassFactory type exposes the following members.

Methods
  NameDescription
Public methodCreateChildFactory
Returns a copy of the factory.
Public methodRegister(Type, Type)
Registers an implementation of an interface. A new instance of the implementation will be created for each call to Resolve.
Public methodRegisterT(FuncT)
Registers a method to call to create new instances of T.
Public methodRegisterTI, TM
Registers an implementation of an interface. A new instance of the implementation will be created for each call to Resolve.
Public methodRegisterInstance(Type, Object)
Registers an implementation of an interface. The instance passed across will be returned on each call to Resolve.
Public methodRegisterInstanceTI(TI)
Registers an implementation of an interface. The instance passed across will be returned on each call to Resolve.
Public methodResolve(Type)
Returns an object that implements the interface passed across.
Public methodResolveT
Returns an object that implements the interface passed across.
Top
See Also