can you explain why ? ValidationDef are used only one time during configuration. You can add instances of ValidationDef to the configuration avoiding the "multi-validationDef" registration which will use the Activator and the parameter less ctor. The methos is: Register<TEntity>(IValidationDefinition<TEntity> validationDefinition)
On Thu, Apr 29, 2010 at 10:05 AM, Valeriu Caraulean <[email protected]>wrote: > Hi there > > I'd like (for the sake of consistency) to have my ValidationDef's > built trough container and those who have external dependencies will > get them injected. > > Is there any way to have it done in current code base? > > If not, can the introduction of an IValidationDefFactory by analogy > with IConstraintValidatorFactory and using it to create ValidatorDef's > be a good solution? If we'll provide a path for this will it be > accepted? > > Thanks > > -- > You received this message because you are subscribed to the Google Groups > "NHibernate Contrib - Development Group" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<nhcdevs%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/nhcdevs?hl=en. > > -- Fabio Maulo -- You received this message because you are subscribed to the Google Groups "NHibernate Contrib - Development Group" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhcdevs?hl=en.
