This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-module(blog). | |
-compile(export_all). | |
transform(Forms) -> | |
Tree = erl_syntax:form_list(Forms), | |
ModifiedTree = postorder(Fun, Tree), | |
erl_syntax:revert_forms(ModifiedTree). | |
parse_transform(Forms, Options) -> | |
TransFun = |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1> c("../src/blog.erl"). | |
{ok,blog} | |
2> c("../src/hello.erl", [{parse_transform,blog}]). | |
{ok,hello} | |
3> hello:send_hello(self()). | |
About to send: | |
{hello,<0.32.0>} | |
4> flush(). | |
Shell got {hello,<0.32.0>} | |
ok |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ee:cache doc:name="Cache"> | |
<logger message="getting item from db for key #[payload]" level="INFO" doc:name="Logger"/> | |
<jdbc-ee:outbound-endpoint exchange-pattern="request-response" queryKey="fetchValue" queryTimeout="-1" connector-ref="jdbcConnector" doc:name="Database (JDBC)"/> | |
<expression-transformer expression="#[payload[0].value]" doc:name="Expression"/> | |
</ee:cache> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<flow name="myFlow"> | |
... | |
<jdbc:outbound-endpoint queryKey="insertElement" connector-ref="jdbcConnector" /> | |
... | |
</flow> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@WebService | |
public interface AppendDateService { | |
String appendDate(@WebParam(name="arg") String arg); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<bean id="queueSizeExporter" class="org.springframework.jmx.export.MBeanExporter"> | |
<property name="beans"> | |
<map> | |
<entry key="Mule.${app.name}:category=custom,name=queueSize" value-ref="mbeanQueueSizeAttributeQuery" /> | |
</map> | |
</property> | |
</bean> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<quartz:connector name="Quartz" validateConnections="true"> | |
<receiver-threading-profile maxThreadsActive="1"/> | |
</quartz:connector> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<flow name="QuartzFlow" processingStrategy="synchronous"> | |
<quartz:inbound-endpoint repeatInterval="5000" jobName="myJob"> | |
<quartz:event-generator-job> | |
<quartz:payload>tick</quartz:payload> | |
</quartz:event-generator-job> | |
</quartz:inbound-endpoint> | |
...long running task... | |
</flow> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.ricston.cache; | |
import java.io.Serializable; | |
import net.sf.ehcache.Ehcache; | |
import net.sf.ehcache.Element; | |
import org.mule.api.store.ObjectStore; | |
import org.mule.api.store.ObjectStoreException; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public View getView (int position, View convertView, ViewGroup parent) |