Questions tagged [active-objects]

42 questions
17
votes
1 answer

Explain "Active-object" pattern

What is the goal of the Active object pattern? Can you show me any abstract example to understand it easily?
Bence Pattogato
  • 3,752
  • 22
  • 30
13
votes
4 answers

Experiences With Active Objects ORM for Java?

I'm looking at ORMs for Java and Active Objects caught my eye. Apparently, it was inspired by Rails' ActiveRecord. Based on what I've read, this approach seems to solve a lot of problems with existing Java ORMs by embracing convention over…
Rich Apodaca
  • 28,316
  • 16
  • 103
  • 129
8
votes
1 answer

Return values for active objects

Back in 2010, Herb Sutter advocated the use of active objects instead of naked threads in an article on Dr. Dobb's. Here is a C++11 version: class Active { public: typedef std::function Message; Active(const Active&) = delete; …
enkelwor
  • 113
  • 2
  • 6
8
votes
1 answer

To use Active object or not?

The active object design pattern as I understand is tying up a (private/dedicated) thread life time with an object and making it work on independent data. From some of the documentation I read , the evolution of this kind of paradigm was because of…
user179156
  • 841
  • 9
  • 31
6
votes
5 answers

How to move a visible image diagonally?

I have been trying to figure out how to make a visible image move diagonally in an applet window. If you press up, down, left, or right the image (a gif) moves accordingly, however if you try to press two keys at once (up and right at the same…
Greywarden
  • 63
  • 1
  • 4
5
votes
1 answer

ActiveObjects throwing exception when adding setter for array field

I have forked an Atlassian Stash plugin for build server integration, and it uses the ActiveObjects component for storing the data. I'm having the following issue: If I follow the other fields and add a getter and setter for my OneToMany fields like…
wonderb0lt
  • 2,035
  • 1
  • 23
  • 37
4
votes
1 answer

How is @Implementation used?

Recently I discovered ActiveObejcts and I really like it. Right now I'm using the last version from Atlassian plugin, only the net.java.ao part for ORM. Compiles and runs fine. Sure, I have to do some performance tests, if it fits my…
PeterMmm
  • 24,152
  • 13
  • 73
  • 111
3
votes
1 answer

Unique Constraint on two column Combination in Active Objects

I am developing with Active Objects and have 4 columns in my table. I have a requirement wherein I have to place a constraint so that combination of two columns will always be unique. @Table("TEST") @Preload("*") public interface TestEntity extends…
Satyam Roy
  • 336
  • 4
  • 18
3
votes
2 answers

Is there a JSON library that can serialize Proxy objects?

Using ActiveObjects as my ORM and Gson as my JSON processor. Ran into a problem going toJson from persisted objects. The problem is that my persisted class is actually an Interface and AO is proxying that object under the hood. Here's some…
gmoore
  • 5,506
  • 5
  • 29
  • 36
3
votes
3 answers

WPF and Active Objects

I have a collection of "active objects". That is, objects that need to preiodically update themselves. In turn, these objects should be used to update a WPF-based GUI. In the past I would just have each object include it's own thread, but that only…
Jonathan Allen
  • 68,373
  • 70
  • 259
  • 447
3
votes
1 answer

How to write two OneToMany relation to same table in ActiveObjects

How can I write two OneToMany relation to same table in ActiveObjects? Why this test case fails? simple message entity. import net.java.ao.Entity; public interface Message extends Entity{ public void setSender(Communicator sender); public…
DyK
  • 249
  • 3
  • 12
2
votes
1 answer

C# Running Active Automation Object - How to Source events?

I have a (long running) console application, written in C#, which I want to be able to manipulate through COM (so no InProc DLLs and regasm.exe). IDispatch is all I need - so a classic OLE Automation object. Here I'll present a minimal version of…
Cleric
  • 3,618
  • 1
  • 14
  • 13
2
votes
1 answer

What would be the alternative to active objects in jira plugin development?

This issue here says that trasnactions don't work in jira. I guess that means that active objects are useless, and unusable in a production environment. So what would be the alternative? I'm new to jira plugin development, and I'm working on my…
Tamas
  • 1,765
  • 1
  • 16
  • 26
2
votes
6 answers

Synchronized list for threaded application

I'm using active object design pattern. I need a list, which holds user defined objects of the same type. Multiple writers push the objects to the list and readers can wait on the queue in a timed manner. I know I can wrap an STL list, but maybe…
dimba
  • 26,717
  • 34
  • 141
  • 196
1
vote
1 answer

Unsatisfied dependency when try using active objects with jira plugin

Hi i try to add activeobjects to jira plugin. All, i think, according to atlassian-springscanner manual. Webwork.java @Scanned public class WebWork extends JiraWebActionSupport { private ConfigurationStorageService configurationStorage; …
1
2 3