This file contains hidden or 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
@JmsListener( destination = "aptkode", | |
containerFactory = "jmsTopicContainerFactory" ) | |
public void receiveMessage( Student message ){ | |
logger.info("jms message: {}", message); | |
} |
This file contains hidden or 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.aptkode; | |
import com.fasterxml.jackson.databind.ObjectMapper; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.jms.support.converter.MessageConversionException; | |
import org.springframework.jms.support.converter.MessageConverter; | |
import org.springframework.stereotype.Component; | |
import javax.jms.JMSException; |
This file contains hidden or 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
spring.activemq.broker-url=tcp://127.0.0.1:61616 |
This file contains hidden or 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.aptkode; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
import org.springframework.boot.autoconfigure.jms.DefaultJmsListenerContainerFactoryConfigurer; | |
import org.springframework.context.annotation.Bean; | |
import org.springframework.jms.annotation.EnableJms; | |
import org.springframework.jms.annotation.JmsListener; |
This file contains hidden or 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
<idea-plugin> | |
<id>co.simpleq.mvn-dependency-updater</id> | |
<name>Maven Dependency Updater</name> | |
<vendor email="[email protected]" url="https://github.com/ruwanka/mvn-dependnecy-updater">simpleq</vendor> | |
<version>0.0.4</version> | |
<description><![CDATA[ | |
Inspect maven dependency version updates and provide<br> | |
<em>quick fix</em> for latest version | |
]]></description> |
This file contains hidden or 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 main | |
import ( | |
"encoding/json" | |
"flag" | |
"fmt" | |
"gopkg.in/src-d/go-git.v4" | |
"io/ioutil" | |
"net/http" | |
"os" |
This file contains hidden or 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.ruwanka.kotlin.reflections | |
import kotlin.reflect.jvm.javaField | |
import kotlin.reflect.jvm.javaGetter | |
import kotlin.reflect.jvm.javaSetter | |
fun main(args: Array<String>) { | |
// get access to java field | |
println(Student::school.javaField) |
This file contains hidden or 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.ruwanka.kotlin.reflections | |
import kotlin.reflect.full.declaredMemberProperties | |
import kotlin.reflect.full.functions | |
import kotlin.reflect.full.memberProperties | |
fun main(args: Array<String>) { | |
// get access to KClass | |
val kClass = Student::class |
This file contains hidden or 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.ruwanka.kotlin.reflections | |
open class Person(val name: String, var age: Int) | |
class Student(name: String, age: Int, var school: String) : Person(name, age) | |
fun main(args: Array<String>) { | |
printTypeHierarchy(Student::class.java) | |
} |
This file contains hidden or 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
fun apply(num: Int, op: (Int) -> Int): Int { | |
return op(num) | |
} |
NewerOlder