I am a newbie to AspectJ and to learn it I am trying to search for some open-source simple applications that use AspectJ for the web but I am unable to retrieve any. I am trying to build a filter through this technology but I am not able to find any working examples that are suited in particular to Eclipse/Tomcat.
You can get (many variations) of a simple e-commerce application built using Spring+AspectJ from http://manning.com/laddad2 (click on "Source Code" link).
Not sure they're specifically targeted at Tomcat, but the examples at
Eclipse AspectJ Sample code ought to give you a start.
Related
I have built a Eclipse RCP Application and packaged with Maven/Tycho and everything works fine. Now, I want to protect my code and want to obfuscate it.
Here are the list of questions :-
Which free tool to use for Obfuscating RCP application?? I tried
Proguard, but stuck with the configuration file and not able to run
Obfuscation. Unfortunately, I dont have sample Eclipse RCP Proguard
Config file.
When should the obfuscation be done?? After the
complete Maven Install of application or when the application is
packaging.
I have tried all possible Google solutions but in vein. Appreciate if any one could be of help.
Regards,
SDS.
Which free tool to use for Obfuscating RCP application
There are some existing plugins you can search in marketplace which help in Obfuscating for example:
https://marketplace.eclipse.org/content/stringer-java-obfuscator
https://marketplace.eclipse.org/content/java-antidecompiler
When should the obfuscation be done??
I have used Obfuscating my RCP application when I do not want to show my package name, method name while extracting code, the objective behind was that we have write down a very specific tool which had some genius and patent code and we do not want to make it free. Simply, in case when you do not want to show your logic.
Approach:
We did in a way that all package names and method names will appear like "OOOOOMMEEOOOOOOOOO" or "EEEEEXXXXXOOOOXX" while extracting or decompiling. you can also write your own logic to replicate specifically what you need and what you target.
It would be good which API or part of code or jar you want to Obfuscating, in my case, RCP application was combination of four applications and we did Obfuscating for our patent code jar only.
You can also refer this:
https://rcpquickstart.wordpress.com/2007/06/22/obfuscating-an-rcp-application/
We have a J2EE application that we deploy to eg. tomcat. We use MagicDraw to model and generate our modelcode. We are currently looking at alternatives to MagicDraw.
I have previously used EMF:
http://www.eclipse.org/modeling/emf/
but that was inside an RCP application (handling dependencies through P2, maven/tycho).
Just a quick glance at the mvnrepository does not give too many results (of course we could upload necessary dependencies manually to our own )
http://mvnrepository.com/search.html?query=emf
How well does EMF work in a non RCP/OSGi application and are there any examples out there to get started?
A few resources I found:
http://www.fosslc.org/drupal/content/emf-large-scale-modeling-outside-eclipse
http://www.eclipsezone.com/eclipse/forums/t57389.html
It's not entirely clear if you are asking for a way to define models outside of an RCP app or if you simply want to work with the generated models.
It's relatively easy to work with emf from a regular Java or Java EE application. If you look for the keyword 'standalone' in the EMF FAQ you will find some useful information.
I have been reading Groovy, and I'm half way down. I started to love groovy a lot, and apply it to solve some simple real world problem; As I love building web applications, i would go for reading Grails webframework as I know Groovy.
But If I want to build desktop-applications, which framework will be the good choice? I wanted to create a simple IDE for Groovy language(or say for any language), that can do syntax highlighting and other kind of stuffs.As mentioned earlier, I love Groovy a lot when compared to Java; And Griffon is a framework that is built on Groovy, mainly for creating Desktop-appplications. But I didn't find enough resources for Griffon!
Is Griffon is the good framework for those people who know and love Groovy(as I do)? Can I choose it for building a simple IDE as mentioned above? Or there are any other framework that is built on Groovy, which is good when compare to Griffon?
The problem I have found with Griffon is that a number of the plugins are a bit out of date in that they aren't using the latest UI libraries (e.g. Flamingo, Substance, and SwingXBuilder, altho I think this has just been upgraded to use SwingX 1.6).
I am using SwingBuilder directly, with a few extensions I have added via my own builder implementation:
http://code.google.com/p/ousia
If you want to build an IDE I can recommend the RSyntaxTextArea component, as it has great support for many programming languages and is pretty simple to use:
http://fifesoft.com/rsyntaxtextarea/
Griffon is a fairly good MVC based framework, and is built on top of Java Swing. So it can do anything that Swing can do.
To be honest I found Griffon a little too much for relatively simple UIs, so I usually write my apps in Groovy using SwingBuilder directly.
If you really want to get into Griffon I recommend getting the Book
Griffon in Action It seems to be the only place where everything is documented, although the web page is coming along and improving all the time.
There are definitely various resources out there that will let you learn more about Griffon, for example the Griffon Guide -> http://dist.codehaus.org/griffon/guide/index.html
"Griffon in Action" is another popular resource which you can buy in electronic form today; being the author of both makes me a little biased ;-)
You can keep up to date on Griffon news by following the mailing lists and #theaviary on Twitter
Well the topic says it all. Can I use google web toolkit to generate my views to be used in Castle Monorail project and render it through nvelocity view engine. Is it at all possible?
I don't know of anyone that has tried this, but GWT is a server-independent technology so in principle I don't see why it wouldn't work. GWT needs some server-side plumbing which you'll probably have to write yourself (again because I haven't found anyone that has done this before).
You might want to check out Script# which is similar to GWT but you code in .Net, it has MSBuild support, Visual Studio integration, etc.
I'm work in an aplication that need be capable of support plugins, but i dont know how this work.
See Design Pattern for implementing plugins in your application?
The answers tend to get very platform specific. It also depends on how much control of your core app data and logic the plugin must have.
The C++ QT4 book has a good description of adding a file-type plugin to it's architecture, there area also a bunch of modeling apps (openscenegraph, blender, povray ) that have good documentation for their plugin architectures.
You need to design your application's API in such a way that plugins can be created, and you need to add the necessary plugin management interfaces and supporting code to invoke the plugins. There is no catch-all way of managing plugins.
Take a look at the open source application called Rawr (c#). Each addin is a seperate .dll and the main app uses reflection to access the code. Very nicely done.
www.codeplex.com/Rawr