You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Paulo Pires <pi...@littlebits.cc> on 2015/12/07 11:46:52 UTC
FactoryBuilder.ClassFactory<>(MyClass.class) set cache store attributes
Hi all,
Following @vkulichenko tip, I'm moving from SingletonFactory to
ClassFactory for taking care of my cache stores. Thing is, while the first
allows me to pass an instance, the second obviously does not. And it seems
there's no way to set any of the cache store attributes I need it to work.
What am I missing?
--
Cheers,
Pires
Re: FactoryBuilder.ClassFactory<>(MyClass.class) set cache store
attributes
Posted by vkulichenko <va...@gmail.com>.
Paulo,
You can also take a look at IgniteReflectionFactory class, which is similar
to ClassFactory, but allows to provide additional properties. Sound like it
can be useful in your case.
-Val
--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/FactoryBuilder-ClassFactory-MyClass-class-set-cache-store-attributes-tp2153p2165.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.
Re: FactoryBuilder.ClassFactory<>(MyClass.class) set cache store attributes
Posted by Paulo Pires <pi...@littlebits.cc>.
Implementing Factory did it for me! Thanks @rgilles
On Mon, Dec 7, 2015 at 10:46 AM, Paulo Pires <pi...@littlebits.cc> wrote:
> Hi all,
>
> Following @vkulichenko tip, I'm moving from SingletonFactory to
> ClassFactory for taking care of my cache stores. Thing is, while the first
> allows me to pass an instance, the second obviously does not. And it seems
> there's no way to set any of the cache store attributes I need it to work.
>
> What am I missing?
>
> --
> Cheers,
> Pires
>
--
Cheers,
Pires