BAEL-1524: Chain of Responsibility Design Pattern in Java (#3780)

* BAEL-1422: measure performance of Random and ThreadLocalRandom using JMH

* BAEL-1422: updated benchmarking examples of Random and ThreadLocalRandom to use newWorkStealingPool that leverages ForkJoinPool

* BAEL-1422: refactored benchmarking examples for comparing performance of ThreadLocalRandom and Random
- initialised the collection of Callable before running benchmarking
- removed for loop for submitting task and instead used executor.invokeAll(collection_of_callable)

* BAEL-1282: added TDD type junit tests for geospatial queries elasticsearch

* BAEL-1524: added example for chain of responsibility design pattern

* BAEL-1524: added BDD style jUnit test to test unknown handler in ChainOfResponsibility design pattern

* BAEL-1524: refactored ChainOfResponsibility design pattern example

* BAEL-1524: refactored ChainOfResponsibility design pattern example

* BAEL-1524: updated ChainOfResponsibility design pattern example

* BAEL-1524: updated ChainOfResponsibility design pattern example

* BAEL-1524: moved chain of responsibility example from core-java module to patterns module
This commit is contained in:
Tarang Bhalodia 2018-03-08 20:15:48 +05:30 committed by Josh Cummings
parent 67092ccc49
commit 00c022388f
9 changed files with 12 additions and 12 deletions

View File

@ -1,5 +0,0 @@
package com.baeldung.designpatterns.chainofresponsibility;
public interface AuthenticationProvider {
}

View File

@ -1,4 +1,4 @@
package com.baeldung.designpatterns.chainofresponsibility;
package com.baeldung.pattern.chainofresponsibility;
public abstract class AuthenticationProcessor {

View File

@ -0,0 +1,5 @@
package com.baeldung.pattern.chainofresponsibility;
public interface AuthenticationProvider {
}

View File

@ -1,4 +1,4 @@
package com.baeldung.designpatterns.chainofresponsibility;
package com.baeldung.pattern.chainofresponsibility;
public class OAuthAuthenticationProcessor extends AuthenticationProcessor {

View File

@ -1,4 +1,4 @@
package com.baeldung.designpatterns.chainofresponsibility;
package com.baeldung.pattern.chainofresponsibility;
public class OAuthTokenProvider implements AuthenticationProvider {

View File

@ -1,4 +1,4 @@
package com.baeldung.designpatterns.chainofresponsibility;
package com.baeldung.pattern.chainofresponsibility;
public class SamlAuthenticationProvider implements AuthenticationProvider {

View File

@ -1,4 +1,4 @@
package com.baeldung.designpatterns.chainofresponsibility;
package com.baeldung.pattern.chainofresponsibility;
public class UsernamePasswordAuthenticationProcessor extends AuthenticationProcessor {

View File

@ -1,4 +1,4 @@
package com.baeldung.designpatterns.chainofresponsibility;
package com.baeldung.pattern.chainofresponsibility;
public class UsernamePasswordProvider implements AuthenticationProvider {

View File

@ -1,4 +1,4 @@
package com.baeldung.designpatterns.chainofresponsibility;
package com.baeldung.pattern.chainofresponsibility;
import org.junit.Test;