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
class Platform { | |
fun install(vararg module: Module) { | |
module.forEach { mod -> mod.install() } | |
} | |
fun Module.install() { | |
setup() | |
} |
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
2013-05-08 11:07:58,017 [15330273@qtp-29699698-0] DEBUG org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:823) - DispatcherServlet with name 'Spring Integration Rest HTTP Path Usage' processing GET request for [/services/normalization] | |
2013-05-08 11:07:58,023 [15330273@qtp-29699698-0] DEBUG org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.lookupHandler(AbstractUrlHandlerMapping.java:169) - Matching patterns for request [/services/normalization] are [/services/normalization{queryString}] | |
2013-05-08 11:07:58,024 [15330273@qtp-29699698-0] DEBUG org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.lookupHandler(AbstractUrlHandlerMapping.java:194) - URI Template variables for request [/services/normalization] are {queryString=} | |
2013-05-08 11:07:58,026 [15330273@qtp-29699698-0] DEBUG org.springframework.web.servlet.handler.AbstractUrlHandlerMapping.getHandlerInternal(AbstractUrlHandlerMapping.java:124) - Mapping [/services/normalization] to HandlerExecu |
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
if( ⁀ ‿ ⁀ == ⁀ ⁔ ⁀) { |
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
ლ(ಠ_ಠლ) |
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
@MappedSuperclass | |
public abstract class BaseEntity { | |
private Long id; | |
@Id | |
@GeneratedValue(strategy=GenerationType.AUTO) | |
public Long getId() { | |
return id; | |
} |
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
@RequestMapping(method=RequestMethod.GET) | |
public String sendForm() { | |
Model model = new Model("sendForm"); | |
model.addObject("sendingRequest", new MessageSendingRequest()); | |
return "sendForm"; | |
} | |
<form:form modelAttribute="sendingRequest" method="POST" action="/mail" > | |
Email: <form:input path="to" type="text" /> | |
<br /> |
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.dpv.dao.account; | |
import java.util.Map; | |
import java.util.concurrent.ConcurrentHashMap; | |
import java.util.concurrent.atomic.AtomicInteger; | |
import org.slf4j.Logger; | |
import org.slf4j.LoggerFactory; | |
import com.dpv.domain.Account; |
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
interface DataSource { | |
public String getData(); | |
} | |
class RestDataSource implements DataSource { | |
... | |
} |
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
class A { | |
private B b; | |
public A(B b) { | |
this.b = b; | |
} | |
public void doSmths() { | |
b.blah(); |
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
class B { | |
public void blah() { | |
... | |
} | |
} | |
class A { | |
NewerOlder