kavin
I'm new here

is DefaultUrlCreator uses the deprectaed interface de.espirit.firstspirit.access.UrlCreator?

Hi All,

We are creating our own UrlCreator on top of the existing first spirit url creators (by delegating a methods to First Spirit url creators).

Since the interface de.espirit.firstspirit.access.UrlCreator is deprecated. so we are creating our own Custom UrlCreators using UrlFactory interface.

But the First Spirit URLCreators (DefaultUrlCreator, InfixUrlCreator, MultiViewUrlCreator) are still implementing the deprecated de.espirit.firstspirit.access.UrlCreator. So is there any replacement for these FirstSpirit urlcreators?

Thank you!

0 Kudos
4 Replies
kohlbrecher
Crownpeak employee

Hi Kavin,

no, there is no replacement for the First Spirit URL Creators and they are not official API. So, the best way is to implement the methods by your own.

Best regards

Jan

0 Kudos

Does that mean, FS internally uses deprecated functions? Why? Maybe because the UrlFactory does not provide all of the flexibility anymore?

0 Kudos

Hi Heiko,

deprecating functionality doesn't mean that all usages are immediately refactored, because depending on the amount of usages, this can be a lot of work. In reality, the deprecated functionality will get removed somewhen in the future - until then, the functionality has to be refactored, or your code will break. Additionally, new code should be written against the new, non-deprecated API. So yes, usually there's a time, where deprecated functionality is still used by old implementations, in FirstSpirit too, of course - hopefully not because the newer API is worse than the old one, but because the code migration simply isn't done yet.

Kind regards,

Hannes

0 Kudos
sebastianc
Crownpeak employee

Hello Kavin,

do you need further help or did the given replies already help you? If so, it would be great if you marked

his reply as "correct answer" so that other community users find the solution easily.   

Best regards 

Sebastian

0 Kudos