[Design the new POJO MicroContainer] - Re: Annotation processing
by alesj
"adrian(a)jboss.org" wrote :
| It's only real use at the moment is in AOP to find out if there are instance annotations.
| That processing is wrong anyway. There should be a
| MetaData.hasInstanceMetaData() instead.
|
What's the difference between local and non-local retrievers (from MetaDataContext):
| /**
| * Get the retrievals
| *
| * @return the retrievals
| */
| List<MetaDataRetrieval> getRetrievals();
|
| /**
| * Get the local retrievals
| *
| * @return the local retrievals
| */
| List<MetaDataRetrieval> getLocalRetrievals();
|
I guess this needs removal as well (from KernelControllerContextAction):
| if (joinpoint instanceof KernelControllerContextAware)
| ((KernelControllerContextAware) joinpoint).setKernelControllerContext(context);
| ...
| if (joinpoint instanceof KernelControllerContextAware)
| ((KernelControllerContextAware) joinpoint).unsetKernelControllerContext(null);
|
Since all information for AOPConstructorJoinpoint should then be in MetaData instance taken from the stack?
Any quick tips on how MetaData.hasInstanceMetaData() should look like?
Should it still use MetaDataContext as current impl in AOPConstructorJoinpoint does?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080773#4080773
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080773
17 years, 7 months
[Design of JBoss jBPM] - Re: Feature Request - global lists API
by simonbaker
OK, but although the db model is open, developers would prefer to have an API that is database neutral and basically hides the persistance layer for ease of use. For small companies like ours, it is expensive to maintain code at the database level. And in general, when a new version of jBPM comes out, custom code for the old version can be a nightmare to integrate in the latest.
I agree you don't want to abuse the "getAllTaskInstances()" type of call for performance reasons, but I have worse situation now. To get all the task instances, I'll have to make a list of all actor ids and, I guess, call "TaskManagementSession.findTaskInstances(List actorIds) which is I suspect a fairly inefficient query.
However, I know I'm new at jBPM so I'd like to learn more about extending it. For example, if I wanted a "getAllTaskInstances()" method, would the best approach be to add my query to the "hibernate.queries.hbm.xml" file (does that mean learning Hibernate generic SQL?) and coding a new method, say "TaskManagementSession.getAllTaskInstances()", following the example of the similar methods? Or is there a better place to hang custom code?
I realize those last questions belong in the user forum.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080681#4080681
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080681
17 years, 7 months