[
https://jira.terracotta.org/jira//browse/CDV-13?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Taylor Gautier resolved CDV-13.
-------------------------------
Resolution: Fixed
Most functionality for annotations is implemented.
> Configure using Java Annotations
> --------------------------------
>
> Key: CDV-13
> URL: https://jira.terracotta.org/jira//browse/CDV-13
> Project: Community Development
> Issue Type: New Feature
> Components: Common Code
> Reporter: Issue Review Board
> Assignee: Product Management
> Priority: 3 Minor
>
> Support a DSO programming model based on JSR 175 annotations as an
> alternative configuration mechanism for DSO metadata. Instead of writing
> tc-config.xml, DSO developers would declare metadata inline in their code
> using the standard Java mechanism for Java code metadata.
> For example:
> import com.terracotta.annotations.Root;
> public class ECommerceClient {
> @Root public static Inventory;
> }
> And:
> import com.terracotta.annotations.Shareable;
> import com.terracotta.annotations.WriteLock;
> @Shareable(honorTransient=true) public class Inventory {
> @WriteLock public void doImportantUpdateStuff() { ... }
> }
> Note that annotations would be supported in addition to the existing XML
> configuration. XML will always be required for operational settings (e.g.
> listen ports, logs, and so forth). Plus, we need to continue to support the
> drop-in use case which can only be accomplished via an external configuration
> file.
> Reasons:
> * Developers like annotations
> * It's low-hanging fruit
> * Pretty much every framework that manages POJOs works this way
> * JBoss Cache AOP does this (PojoCache)
> * Demos involving code will be 10x more clear and powerful
> * This is where the money is
> Reference - Support JSR 175 annotations for DSO meta data: LKC-451
> (Terraotta internal development Jira issue)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.terracotta.org/jira//secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
tc-dev mailing list
[email protected]
http://lists.terracotta.org/mailman/listinfo/tc-dev