Exactly thats the case. We can even discuss removing the register method,
we can do this as well in other ways...
Romain Manni-Bucau <rmannibu...@gmail.com> schrieb am Sa., 29. Nov. 2014 um
12:12:

> Ok then. While register call can be optional and this facade support
> pluggability and is bound to an app/context all is fine.
>  Le 29 nov. 2014 12:08, "Anatole Tresch" <atsti...@gmail.com> a écrit :
>
> > No. PropertyAdapters is the manager and access point who is aware of the
> > propertyAdapter instances (no s at thr end). Internally the singleton
> > delegates to an spi that can is loaded from the Bootstrap. The loading
> > policy of the Bootstrap can be configured, so dynamic lookup eg using CDI
> > can be supported similarly as ServiceLoader in SE/ME. This mechanism is
> > similar to JSR354 and has been proven to work with all kind of containers
> > araound. It even can support multiple mechsnisms in paralell, eg
> > ServiceLoader, CDI/atinject and something custom build...
> >
> > Cheers
> > Anatole
> > Romain Manni-Bucau <rmannibu...@gmail.com> schrieb am Sa., 29. Nov. 2014
> > um
> > 11:51:
> >
> > > Shouldnt propertyadapters be an interface? Default would use a standzrd
> > SPI
> > > but you can change it (closed set, osgi etc...).
> > >  Le 29 nov. 2014 01:24, "Oliver B. Fischer" <o.b.fisc...@swe-blog.net>
> a
> > > écrit :
> > >
> > > > @John I think it is quite convenient to reuse these mechanisms.
> > Actually
> > > I
> > > > think nowadays we should support the automatic detection of resources
> > > (how
> > > > ever we call them). This means more work and even more tests for us
> but
> > > our
> > > > users will love it. I like the way of the FasterXML/jackson [1]: Add
> it
> > > to
> > > > the classpath and we will use it.
> > > >
> > > >
> > > > [1] https://github.com/FasterXML/jackson
> > > >
> > > > Am 29.11.14 00:51, schrieb John D. Ament:
> > > >
> > > >> Instead of having a PropertyAdapter, can we just ask them to
> implement
> > > >> java.util.function.Function<?,String> or point to a lambda
> expression
> > > >> that
> > > >> supports it?
> > > >>
> > > >> I would prefer that over 2 & 3 since in most cases a string
> > ctor/factory
> > > >> won't work without lots of lookup logic.
> > > >>
> > > >
> > > > --
> > > > N Oliver B. Fischer
> > > > A Schönhauser Allee 64, 10437 Berlin, Deutschland/Germany
> > > > P +49 30 44793251
> > > > M +49 178 7903538
> > > > E o.b.fisc...@swe-blog.net
> > > > S oliver.b.fischer
> > > > J oliver.b.fisc...@jabber.org
> > > > X http://xing.to/obf
> > > >
> > > >
> > >
> >
>

Reply via email to