openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abe White <awh...@bea.com>
Subject Re: @Strategy
Date Tue, 31 Oct 2006 18:21:39 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: "com.xyz.MyStrategy(foo=1, bar=2)"

These might be pretty weak reasons, but they're worth mentioning.

Mime
View raw message