[Geoserver-devel] catalog question

Hi,

Imagine you're making your own implementation of a Catalog(Facade). I am wondering, would it be possible to make your own implementations of ResourceInfo, LayerInfo, etc... as well, and serve those?

Theoretically, it should be possible, that is kind of the whole purpose of interfaces... but casting interfaces to implementations is one of the most common anti-patterns I have ever come across. And it is definitely very common in Geoserver.

Anyone have an idea on the top of their head if Geoserver could run that way or would it fail miserably?

Regards,
Niels