Castle.MicroKernel.ComponentActivator
Namespace with 8 public types
Classes
ComponentActivatorException
Summary description for ComponentActivatorException.
DefaultComponentActivator
Standard implementation of .
Handles the selection of the best constructor, fills the
writable properties the component exposes, run the commission
and decommission lifecycles, etc.
ExternalInstanceActivator
FactoryMethodActivator`1
NoResolvableConstructorFoundException
Exception thrown when component has no resolvable constructor that can be used to create an instance.
WebUserControlComponentActivator
Attempts to dynamically load a UserControl by invoking Page.LoadControl.
There are two uses of this class.
1) Add a component to the Kernel and add a VirtualPath attribute specifying
the relative path of the .ascx file for the associated UserControl. (easy)
<component id="BasketView"
service="Castle.ShoppingCart.IBasketView, Castle.ShoppingCart"
type="Castle.ShoppingCart.BasketView, Castle.ShoppingCart"
lifestyle="transient"
virtualPath="~/Views/BasketView.ascx"
/>
2) Precompile a UserControl and add the pre-compiled class to the Kernel. (hard)
Has not been tested with proxies.
Abstract Classes
AbstractComponentActivator
Abstract implementation of .
The implementors must only override the InternalCreate and
InternalDestroy methods in order to perform their creation and
destruction logic.
Interfaces
IDependencyAwareActivator