-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bbae27d
commit 6d39b9d
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
31 changes: 31 additions & 0 deletions
31
src/main/java/io/vlingo/http/resource/DynamicResourceHandler.java
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
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; | ||
} | ||
|
||
} |