[ http://mc4j.org/jira/browse/STS-455?page=comments#action_10977 ]
Iwao AVE! commented on STS-455:
-------------------------------
I have been considering this for a while.
Can't we use annotation for that?
For example:
@TypeConverterFor(Date.class)
public class MyDateTypeConverter implements TypeConverter
{...}
@FormatterFor(MyOrder.class)
public class MyOrderFormatter implements Formatter
{...}
This might be a topic which should be explained on the wiki if it can be
achieved by extending the default factories.
Just an idea...
> Allow adding TypeConverters and Formatters without extending
> TypeConverterFactory or FormatterFactory
> -----------------------------------------------------------------------------------------------------
>
> Key: STS-455
> URL: http://mc4j.org/jira/browse/STS-455
> Project: Stripes
> Issue Type: Improvement
> Reporter: Ben Gunter
> Assigned To: Ben Gunter
>
> TypeConverters and Formatters should be able to be configured in web.xml.
> Since both interfaces take a generic type parameter, Stripes should be able
> to use that type parameter to register the converter or formatter with the
> default implementations of TypeConverterFactory and FormatterFactory.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://mc4j.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development