[jbossts-issues] [JBoss JIRA] (JBTM-2057) Improve Container API

Anonymous (Jira) issues at jboss.org
Thu Mar 19 12:49:32 EDT 2020


     [ https://issues.redhat.com/browse/JBTM-2057?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Issue was automatically transitioned when pull request #658 was created in GitHub
---------------------------------------------------------------------------------
    Status: Pull Request Sent  (was: Open)


> Improve Container API
> ---------------------
>
>                 Key: JBTM-2057
>                 URL: https://issues.redhat.com/browse/JBTM-2057
>             Project: JBoss Transaction Manager
>          Issue Type: Feature Request
>          Components: STM
>    Affects Versions: 5.0.0.CR1
>            Reporter: Mark Little
>            Assignee: Mark Little
>            Priority: Major
>
> RecoverableContainer<Sample> theContainer = new RecoverableContainer<Sample>();
> Sample obj1 = theContainer.create(new SampleLockable(10));
> Sample obj2 = theContainer.create(new SampleLockable(10));
> // todo make it easier to create and share objects.
>   Make sharing of objects like this the default even for pessimistic. Just pass back the
>   same instance in that case. Also hide getUidForHandle by simply passing the obj instance.fr
> Sample obj3 = theContainer.duplicate(obj1);
> Sample obj4 = theContainer.duplicate(obj2);
> but for duplicate to work, we'd need to create a new instance of SampleLockable, so it needs to have a default constructor. And even then, it needs to be transactional.



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jbossts-issues mailing list