public interface WithPath
Target which has a path.
This interface was factored out of Target at a period of time where Target had become a pure abstract class, by this
I mean a class which has no implementation whatsoever, only abstract method declarations. Moreover, an implementation,
well, a specialization of Target for which path had no meaning used to throw exception when such meaningless methods were
called. This was error prone and indeed it led to an actual issue. As a followup of this issue, Target was refactored
to avoid this sort of bugs
One could argue that I should have chosen to extend Target. But I chose to use separate interfaces and arcane generics
boundary syntax instead.| Modifier and Type | Method and Description |
|---|---|
String |
getPath() |
String |
getProject() |
Copyright © 2010–2017 Henix, henix.fr. All rights reserved.