I wanted to add a new addon to Forge that handles the Java EE security
- Add constraints to some resources
- Setup authentication mechanism (form, basic, digest, etc.)
- Assign realm to security constraints
- Create security roles
- If the realm is JDBC and JPA facet is installed, add an entity along with
some named queries
I looked in the Forge JIRA whether there is something like that and I found
this issue created almost a year and a half ago:
I read in the description though, that the addon should be also able to
setup groups and users inside a realm. Isn't that too server specific if
the realm is not JDBC? Maybe we could continue the communication in the
issue, so whoever is interested my add themselves as a watcher there?
I'm trying to add more commands in Forge... but I have to say, I'm a bit
lost. So, I've made a quick UML class diagram.
As you can see in the attached diagram (UIForge.png), most of the Java EE
commands extend AbstractJavaEECommand, which makes sense. But not all of
them (NewBeanCommand (CDI), ValidationNewAnnotationCommandImpl,
NewQualifierCommand....). And some times you have an extra level of
abstraction (AbstractFacesCommand). Same for the Java commands.
JavaClassCommandImpl extend AbstractJavaSourceCommand but
JavaAddAnnotationCommand and JavaFieldCommand inherit from
Then, when you dive into a command (UIForgeStructure.pgn), some commands
use interface and implementation (see in the second
implementing JavaAddAnnotationCommand), some don't
(e.g. NewQualifierCommand). Is there a reason ?
Correct me if I'm wrong, but the way I see it would be (HowIseeIt.png) :
under AbstractJavaEECommand you have a set
of AbstractValidationCommand, AbstractCDICommand, AbstractJPACommand....
each implementing PrerequisiteCommandsProvider (this way, each command sets
up its own pre-requisite). And then, under AbstractCDICommand you have all
the NewQualifierCommand, NewBeanCommand....
What do you think ? Am I the only one getting a little bit lost ;o)
What do you think of re-structuring the class hierarchy ?
Software architect and Java Champion
Web site <http://www.antoniogoncalves.org/> | Twitter
<http://twitter.com/agoncal> | LinkedIn <http://www.linkedin.com/in/agoncal>
| Paris JUG <http://www.parisjug.org/> | Devoxx France
I try create intellij dependency, but I had a problem:
08:36:57 (master) ~/Tools/workspace/intellij-idea-plugin$ echo $SHELL
I try did that:
08:37:01 (master) ~/Tools/workspace/intellij-idea-plugin$
./install-intellij-libs.sh 13.1.5 ~/Tools/idea-IU-135.1230/
Installing IntelliJ artifacts to Maven local repository
IntelliJ home: /home/soro/Tools/idea-IU-135.1230/
./install-intellij-libs.sh: 26: ./install-intellij-libs.sh: Syntax error:
"(" unexpected (expecting "done")
But that mode, work well:
08:50:47 (master) ~/Tools/workspace/intellij-idea-plugin$ bash
install-intellij-libs.sh 13.1.5 ~/Tools/idea-IU-135.1230/
Some idea about it?
Daniel Cunha (soro) <http://www.cejug.net>
I’ve been working on the Issue:Install Forge from CURL
While writing the script I found that the installer extracts to the name
:”forge-distribution-2.12.1.Final”. Meanwhile reading the installation
documents on the forge website(http://forge.jboss.org/document/installation),
I found that the install location suggested is “~/forge/“ (maintaining the
bin folder directly inside this).
Should I rename the extracted zip archive to “forge” inside the script ? or
should I modify the path variable?
Please correct me if I am wrong anywhere or if there is an alternate way to
handle this. (This is my first outing with open source!).
I am happy to announce the immediate availability of JBoss Forge
2.12.0.Final, our most feature packed release yet!
Go grab it at http://forge.jboss.org !
Lincoln Baxter, III
"Simpler is better."