private void CreateComponentAdapters() { foreach (var component in _metadata.Components) { _components.Add(_componentAdapterFactory.CreateComponentAdapter(component)); } }
public override IComponentAdapter RegisterComponentImplementation(Object componentKey, Type componentImplementation) { if (componentKey is Type) { Type clazz = (Type)componentKey; if (clazz.IsInterface) { IComponentAdapter caDelegate = caf.CreateComponentAdapter(componentKey, componentImplementation, null); return (DelegateContainer.RegisterComponent(new ImplementationHidingComponentAdapter(caDelegate, true))); } } return(DelegateContainer.RegisterComponentImplementation(componentKey, componentImplementation)); }
public IComponentAdapter RegisterComponentImplementation(object componentKey, Type componentImplementation, IParameter[] parameters) { IComponentAdapter componentAdapter = componentAdapterFactory.CreateComponentAdapter(componentKey, componentImplementation, parameters); RegisterComponent(componentAdapter); return(componentAdapter); }
public virtual IComponentAdapter CreateComponentAdapter(object componentKey, Type componentImplementation, IParameter[] parameters) { return(theDelegate.CreateComponentAdapter(componentKey, componentImplementation, parameters)); }