[Design of JBoss Build System] - Re: Moving jbossas to a maven repo for thirdparty
by pgier
"scott.stark(a)jboss.org" wrote : "pgier" wrote : Unfortunately the mapping part will be separate from the dependencies, because the mapping will have to be a parameter to the plugin. I can't change the XML for the dependencies in the pom without hacking up and forking the maven code. I'll post an example tomorrow of what it looks like once I get a couple more of the details figured out.
| |
| Right, I was just reproducing the dependency info in the plugin config to allow the mapping to be clear.
|
Oh yeah, sorry, I didn't read your earlier post very carefully. It will look very similar to what you put above.
"scott.stark(a)jboss.org" wrote :
| "pgier" wrote :
| | I'm going to make this a new mojo (maven plugin class) in the current jboss-deploy plugin because they can share some code for writing component-info files and other stuff. I'm thinking about renaming the plugin to something like jboss-thirdparty plugin, but that's low priority.
| |
| Remember we really don't need the component-info.xml in the local thirdparty contents as we would not be using the jbossbuild repository mechanism any longer.
|
It's not a big deal since I already had some small code for it from the jboss-deploy plugin.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132220#4132220
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132220
18 years, 1 month
[Design of JBoss jBPM] - Re: Command facade API
by tom.baeyens@jboss.com
the command pattern is only an intermediate step towards a normal session facade interface.
the idea is that process languages like jPDL still could offer a session facade with normal methods, typed return values and typed parameters. these could then be implemented in terms of the command.
such a session facade would look like this
public class JpdlService extends CommandService {
| Execution startProcess(String processName);
| Execution signal(long executionId);
| ...
| }
impl would be something like this
public class JpdlServiceImpl extends CommandServiceImpl implements JpdlService {
| public Execution startProcess(String processName) {
| return (Execution) execute(new StartProcessCommand(processName));
| }
| ...
| }
There are 2 motivations for this approach
1) graph retrieval.
A typical session facade doesn't have a way to specify how much of the returned object graph needs to be eagerly initialized. When navigating through the object graph outside of the session facade (hence outside the hibernate session scope) you can get lazy initialization exceptions.
By using the command pattern, users can easily extend a command, appending the eager fetching to the command.
2) open ended session facade
A bunch of commands are reusable. But if you're writing a UI as a front end for the whole engine, you want to do fetch very specific things from the facade. In that case, it might be easier to have local command classes to the UI, instead of bloating a customized session with hundreds of methods for each individual use case.
That is the summary of the argumentation why i came to it. I certainly acknowledge that it has it's limitations. But I didn't yet see a better alternative. (that incl a quick but incomplete scan of the post you referenced)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132203#4132203
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132203
18 years, 1 month
[Design of OSGi Integration] - Re: Facade Questions
by adrian@jboss.org
"adrian(a)jboss.org" wrote : "johnbailey" wrote :
| | Any idea on when the MainDeployer will have the correct interface to move the deployment to a different state?
|
| I'm doing it now. I've already added a getMainDeployer() to the deployment unit.
| I'm just adding a MainDeployer.change(deploymentName, DeploymentStage);
|
Ok this is done. I also had to move the DeploymentStage(s) class to the client api
and make it Serializable.
So you should now be able to do something like:
| DeployerClient main = unit.getMainDeployer();
| main.change(unit.getName(), DeploymentStages.CLASSLOADER);
|
If you find any problems, then update the test case in the deployers-impl package,
to show the issue.
org.jboss.test.deployers.main.test.DeployerChangeStageTestCase
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4132201#4132201
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4132201
18 years, 1 month