Castle.Facilities.DynamicLoader Delegates the creation of components to a , which creates the component on a different . Creates a new . Creates the component instance by calling the method. The component is then registered with the with a renewal time of 2 minutes, in order to stay alive forever. Disposes an object, and unregisters it from the . The object being destroyed Closes the used to keep remote objects alive. DynamicLoader facility. Initializes the facility. Terminates the facility. Register each batch component. The instance in which to register The component configuration node An example of a valid configuration node: <component id="componentid.*"> <providesService service="Company.Project.IService, Company.Project" /> </component> Normalizes a directory path. It includes resolving parent (..) paths and the ~ prefix, which maps to the root of the current application. The directory path The normalized directory path Gets the root directory of the current application. For web applications, it is obtained from . For other applications, is used. implementation. Releases all s and s. Inspects component configuration nodes, looking for domain attributes. When found, register a custom activator: . Constructor. Performs the inspection on the model. Stores instances of . Register a new loader, for the specified . Gets the instance for the specified . Registers a specific component on a specific domain. The implementation simply calls to get the correct , then add the component to the . Implementation of . Loads components on an isolated . Creates a new . This constructor should not be called directly in the code, but via . Searches for implementations of the given services in the current and add as components. Used by . The component id mask. Any * (asterisk) character will be replaced by a sequential number, starting by 1 (one). The services in which to test Loads all assemblies in the current . Disposes the . Checks whether a type is a valid implementation of a given service . The service type The component type true if is a valid implementation of the service specified by , false otherwise. Generates an unique component id, given the . The unique component id Creates a component on an isolated . Overrides , so no lease is returned and the object is kept in memory as long as the host application domain is running. The in which the components are registered. The .