Hi.. I'm a newbie Spring user.
I've this class :
public class MyClass {
private ConfigKey theKey;
// setter
}
ConfigKey is a type-safe enum class :
public class ConfigKey {
private ConfigKey(int key){
this.key = key;
}
private int key;
public static final ConfigKey KEY_1 = new ConfigKey(1);
public static final ConfigKey KEY_2 = new ConfigKey(2);
}
How should I fill the ??? below?
<bean class="MyClass " id="myClass">
<property name="minProcessKey">
<value>???</value>>
</property>
<property name="maxProcessKey">
<value>???</value>>
</property>
</bean>


Reply With Quote