Yeah, could drop the 'Configured' part. I guess I wanted to be explicit (because XmlSiteMeshFilter could suggest that SiteMesh had something to do with XML processing).
The auto-discovery option could work. Need to be careful as it could lead down a path of hidden-magic that could end up getting users confused, even with logging.
Having thought about it a bit more... it might be worth merging the init-param and XML config into the same mechanism, and making that the default 'SiteMeshFilter'. It would allow config to be loaded from params, XML, or both.
<filter>
<filter-class>org.sitemesh.config.SiteMeshFilter</filter-class>
<init-param>
.. some param ..
</init-param>
<init-param>
<!-- optional: load additional config from here -->
<param-name>config</param-name>
<param-value>/WEB-INF/sitemesh.xml</param-name>
</init-param>
</filter>
This is growing on me because:
* Most users will be fine just using this one Filter
* Users who like XML are happy - they do it all in the XML file.
* Users who hate additional config files are happy - they just do it all inline.
* It's possible to separate different aspects of config (e.g. all class names in init-params, and mappings in XML).
* It hides proliferation of classes that the user shouldn't care about.
For the other stuff like Spring integration, it would be fine to have additional classes like SpringSiteMeshFilter.
I think that could work.
-j