As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
@Resource(name = "alfresco") private Properties alfrescoProperties;
Properties props = new Properties(); props.load(AlfrescoServiceImpl.class.getClassLoader().getResourceAsStream("alfresco.properties"));
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")); } }