04-01-2016 07:13 AM
06-10-2016 07:51 AM
05-11-2016 10:34 AM
06-10-2016 04:38 AM
public class JavascriptCompatibleMyAppnameConfiguration extends BaseProcessorExtension {
private MyAppnameConfigurationService myAppnameConfigurationService;
private String otherConfigurationProperty1;
private String otherConfigurationProperty2;
public String getSomeConfigurationProperty1() {
return myAppnameConfigurationService.getSomeConfigurationProperty1();
}
public String getSomeConfigurationProperty2() {
return myAppnameConfigurationService.getSomeConfigurationProperty2();
}
public String getSomeConfigurationProperty3() {
return myAppnameConfigurationService.getSomeConfigurationProperty3();
}
public String getOtherConfigurationProperty1() {
return otherConfigurationProperty1;
}
public String getOtherConfigurationProperty2() {
return otherConfigurationProperty2;
}
public void setMyAppnameConfigurationService(MyAppnameConfigurationService myAppnameConfigurationService) {
this.myAppnameConfigurationService= myAppnameConfigurationService;
}
public void setOtherConfigurationProperty1(String otherConfigurationProperty1) {
this.otherConfigurationProperty1 = otherConfigurationProperty1;
}
public void setOtherConfigurationProperty2(String otherConfigurationProperty2) {
this.otherConfigurationProperty2 = otherConfigurationProperty2;
}
}
<beans>
<bean id="myAppnameJsPropertyConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="placeholderPrefix" value="$myappconfigjs{"/>
<property name="locations">
<list>
<value>classpath:/some-configuration.properties</value>
</list>
</property>
<property name="ignoreUnresolvablePlaceholders" value="false"/>
</bean>
<bean id="JavascriptCompatibleMyAppnameConfiguration" parent="baseJavaScriptExtension"
class="my.organisation.myappname.JavascriptCompatibleMyAppnameConfiguration">
<property name="myAppnameConfigurationService" ref="myAppnameConfigurationService" />
<property name="otherConfigurationProperty1" value="$myappconfigjs{otherConfigurationProperty1}" />
<property name="otherConfigurationProperty2" value="$myappconfigjs{otherConfigurationProperty2}" />
<property name="extensionName" value="MyAppnameConfiguration" /> <!– This defines the name of the javascript object which will be accessible in the webscripts –>
</bean>
</beans>
org.springframework.beans.NotWritablePropertyException: Invalid property 'processor' of bean class [my.organisation.myappname.JavascriptCompatibleMyAppnameConfiguration]:
Bean property 'processor' is not writable or has an invalid setter method. Did you mean 'processors'?
06-10-2016 07:51 AM
06-10-2016 08:06 AM
05-24-2016 12:20 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.