06-03-2014 02:31 PM
@Resource(name = "alfresco")
private Properties alfrescoProperties;
Properties props = new Properties();
props.load(AlfrescoServiceImpl.class.getClassLoader().getResourceAsStream("alfresco.properties"));
06-03-2014 11:57 PM
06-04-2014 11:38 AM
06-04-2014 12:43 PM
helloworld.get.desc.xml
helloworld.get.js
helloworld.get.html.ftl
helloworld.get.config.xml
ConfigModel config = model.get("config")
public classs YourWebScript{
public init(){
Properties props = new Properties();
props.load(AlfrescoServiceImpl.class.getClassLoader().getResourceAsStream("alfresco.properties"));
}
}
<bean id="webscript.com.your webscritp.get"
class="com.YourWebScript"
parent="webscript" init-method="init">
<property name="repository" ref="repositoryHelper" />
<property name="serviceRegistry" ref="ServiceRegistry" />
</bean>
public classs YourWebScript{
public void init(Container container, Description description){
super.init(container, description);
Properties props = new Properties();
props.load(AlfrescoServiceImpl.class.getClassLoader().getResourceAsStream("alfresco.properties"));
}
}
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.