openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Linskey" <>
Subject RE: @Strategy
Date Tue, 31 Oct 2006 19:12:38 GMT
> > @Strategy allows the specification of a custom class name in string
> > form. However, class names inside quotes don't refactor all that  
> > well. I
> > think we should add an @StrategyClass annotation that allows
> > specification of a strongly-typed Class instance. What say ye?
> I'm not voting either way; I just want to point out that the reason  
> for the String value was twofold:
> 1. To allow the use of aliases for built-in strategies.
> 2. To allow the use of plugin strings to configure the strategy, for  
> example: ", bar=2)"
> These might be pretty weak reasons, but they're worth mentioning.

The reasons make sense. And FTR, I'm not proposing that we get rid of
the existing @Strategy, but rather that we add a new @StrategyClass that
can be strongly-typed. This might lead us down the
too-many-config-options path, though.


View raw message