Skip to content

Commit

Permalink
Added DynamicResourceHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
danilo-ambrosio committed Nov 5, 2020
1 parent bbae27d commit 6d39b9d
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions src/main/java/io/vlingo/http/resource/DynamicResourceHandler.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// Copyright © 2012-2020 VLINGO LABS. All rights reserved.
//
// This Source Code Form is subject to the terms of the
// Mozilla Public License, v. 2.0. If a copy of the MPL
// was not distributed with this file, You can obtain
// one at https://mozilla.org/MPL/2.0/.
package io.vlingo.http.resource;

import io.vlingo.actors.Logger;
import io.vlingo.actors.Stage;

public abstract class DynamicResourceHandler {
private final Logger logger;
private final Stage stage;

protected DynamicResourceHandler(final Stage stage) {
this.stage = stage;
this.logger = stage.world().defaultLogger();
}

public abstract Resource<?> routes();

protected Logger logger() {
return logger;
}

protected Stage stage() {
return stage;
}

}

0 comments on commit 6d39b9d

Please sign in to comment.