Was curious if it was feasible to have one generic factory interface for 
all Windsor Typed Factory use cases.  Example:

public interface IFactory<T> : where T: class
{
   T Get(); //Caller needs to resolve a single factory component
   T[] GetAll();  //Caller needs to resolve all factory components
   T Get(string componentId); //Caller needs to resolve a single factory 
component by component Id
}

Is this feasible in Windsor or do I need to bust this out into 
three separate factories (one for each Get method)?




-- 
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/castle-project-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to