wood burning stoves 2.0*
The moose likes Java in General and the fly likes Java hooks Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java hooks" Watch "Java hooks" New topic
Author

Java hooks

avihai marchiano
Ranch Hand

Joined: Jan 10, 2007
Posts: 342
Hey,

We want to separate our application to into two parts infrastructure and business application.
The infrastructure will be developed by another team in another project that the business application.

Our application is deployed as an ear on JBoss 4.2. we are using Jboss AOP, Ejb3.

We want to write an infrastructure that will allow to the application logic team to add or change behaviors for exceptional cases.
The code that they write has to be written in a sepertae project that depends on the infrastructure project.


For example, lets say that I expose a fa�ade of updateObj(obj)
The infrustrcutre look like this �
Object updateObject(Object object){
DBService(object);
}

We are developing NMS system , so we have a lot of device platform and versioning.
We need to give the application team the ability to expand the infrastructure in an easily way. For example in the above example � if the object is instance of VIP and the device platform is A , version 1.05 you need to log the operation , clear some values from the object before save it and in rare cases skip the call to DBService.

Can you please advice on solutions that suitable for this problem? (Maybe to write a plug-in infrastructure with AOP)

Thank you
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Java hooks
 
Similar Threads
Spring AOP / Spring AOP + AspectJ ?
Java hooks
Metaphors of AOP
Java hooks
AOP