[infinispan-dev] Configuration semantic validity

Galder Zamarreno galder at jboss.org
Thu Apr 8 07:01:41 EDT 2010


----- "Vladimir Blagojevic" <vblagoje at redhat.com> wrote:

> No I have not. It is just that I recall vaguely seeing some code where
> people have adopted other ways to do achieve validation. I wanted to
> do some input validation for data container configuration.
> 
> I recall Galder was doing some validation regarding cache loaders and
> input parameters but I can not find that code any more. Galder?

It's precisely in ConfigurationValidatingVisitor, class that you referred to at the start

   @Override
   public void visitSingletonStoreConfig(SingletonStoreConfig ssc) {
      if (tt == null) throw new ConfigurationException("Singleton store configured without transport being configured");
   }

:)

> 
> Cheers.
> 
> 
> On 2010-04-06, at 1:02 PM, Manik Surtani wrote:
> 
> > I believe so too.  Have you spotted something amiss?
> > 
> > On 5 Apr 2010, at 16:42, Vladimir Blagojevic wrote:
> > 
> >> Hey,
> >> 
> >> How are we doing semantic validity of Configuration and
> GlobalConfiguration objects nowadays? I thought that we are going to
> keep that logic in ConfigurationValidatingVisitor?
> >> 
> >> Cheers,
> >> Vladimir 
> >> _______________________________________________
> >> infinispan-dev mailing list
> >> infinispan-dev at lists.jboss.org
> >> https://lists.jboss.org/mailman/listinfo/infinispan-dev
> > 
> > --
> > Manik Surtani
> > manik at jboss.org
> > Lead, Infinispan
> > Lead, JBoss Cache
> > http://www.infinispan.org
> > http://www.jbosscache.org
> > 
> > 
> > 
> > 
> > _______________________________________________
> > infinispan-dev mailing list
> > infinispan-dev at lists.jboss.org
> > https://lists.jboss.org/mailman/listinfo/infinispan-dev
> 
> 
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev



More information about the infinispan-dev mailing list