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:
parent
67092ccc49
commit
00c022388f
|
@ -1,5 +0,0 @@
|
|||
package com.baeldung.designpatterns.chainofresponsibility;
|
||||
|
||||
public interface AuthenticationProvider {
|
||||
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.designpatterns.chainofresponsibility;
|
||||
package com.baeldung.pattern.chainofresponsibility;
|
||||
|
||||
public abstract class AuthenticationProcessor {
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
package com.baeldung.pattern.chainofresponsibility;
|
||||
|
||||
public interface AuthenticationProvider {
|
||||
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.designpatterns.chainofresponsibility;
|
||||
package com.baeldung.pattern.chainofresponsibility;
|
||||
|
||||
public class OAuthAuthenticationProcessor extends AuthenticationProcessor {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.designpatterns.chainofresponsibility;
|
||||
package com.baeldung.pattern.chainofresponsibility;
|
||||
|
||||
public class OAuthTokenProvider implements AuthenticationProvider {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.designpatterns.chainofresponsibility;
|
||||
package com.baeldung.pattern.chainofresponsibility;
|
||||
|
||||
public class SamlAuthenticationProvider implements AuthenticationProvider {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.designpatterns.chainofresponsibility;
|
||||
package com.baeldung.pattern.chainofresponsibility;
|
||||
|
||||
public class UsernamePasswordAuthenticationProcessor extends AuthenticationProcessor {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.designpatterns.chainofresponsibility;
|
||||
package com.baeldung.pattern.chainofresponsibility;
|
||||
|
||||
public class UsernamePasswordProvider implements AuthenticationProvider {
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.designpatterns.chainofresponsibility;
|
||||
package com.baeldung.pattern.chainofresponsibility;
|
||||
|
||||
import org.junit.Test;
|
||||
|
Loading…
Reference in New Issue