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.kodelog.schedulerjob; | |
import org.apache.log4j.Logger; | |
import org.springframework.context.support.ClassPathXmlApplicationContext; | |
public class Executor { | |
public static final Logger LOG = Logger.getLogger(Executor.class); | |
public static void main(String[] args) throws Exception { | |
new ClassPathXmlApplicationContext("spring-quartz.xml"); | |
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 E take() throws InterruptedException { | |
E x; | |
int c = -1; | |
final AtomicInteger count = this.count; | |
final ReentrantLock takeLock = this.takeLock; | |
takeLock.lockInterruptibly(); | |
try { | |
try { | |
while (count.get() == 0) | |
notEmpty.await(); |
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.kodelog.validation.innovativevalidators; | |
import com.kodelog.validation.validators.Validator; | |
/** | |
* Some innovative validators can make your day | |
* | |
* @param <K> Object extending Comaprable | |
* @param <V> Object extending Comaprable | |
* @param <R> Result Object |
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 some.money; | |
import java.math.BigDecimal; | |
/** | |
* Immutable class for Money. A final class with no setters. | |
*/ | |
public final class Money { | |
private BigDecimal amount; |