-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#2349 Introduce a default stub implementation of IEntityMasterUrlProv…
…ider to correct the IoC configuration 4ae670e introduced IUrlGenerator but bound it only in IBasicWebApplicationServerModule, which caused some other IoC modules to break (TgTestApplicationServerModule in particular, which is used by DataPopulationConfig in PopulateDb).
- Loading branch information
1 parent
b260604
commit 01cbfa4
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
...ojo-bl/src/main/java/ua/com/fielden/platform/web/interfaces/IEntityMasterUrlProvider.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
14 changes: 14 additions & 0 deletions
14
...-bl/src/main/java/ua/com/fielden/platform/web/interfaces/StubEntityMasterUrlProvider.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,14 @@ | ||
package ua.com.fielden.platform.web.interfaces; | ||
|
||
import ua.com.fielden.platform.entity.AbstractEntity; | ||
|
||
import java.util.Optional; | ||
|
||
final class StubEntityMasterUrlProvider implements IEntityMasterUrlProvider { | ||
|
||
@Override | ||
public Optional<String> masterUrlFor(final AbstractEntity<?> entity) { | ||
return Optional.empty(); | ||
} | ||
|
||
} |