|
| ||||||||||
| Tags: aspect oriented programming, framework, java, spring |
![]() |
| | Thread Tools | Search this Thread |
|
#1
| |||
| |||
| Aspect Oriented Programming in Java
|
|
#2
| ||||
| ||||
| Re: Aspect Oriented Programming in Java
The aspect-oriented programming because it provides a programming paradigm and new concepts, developed a very specific jargon which makes no understanding of its concepts are ultimately simple but powerful.
|
|
#3
| ||||
| ||||
| Re: Aspect Oriented Programming in Java
Take the example of a simple business class "test" which contains the method "hello ()" and returns a String. So we will see how to change the Spring configuration in order to track each call and each output of the method hello (). The idea is to intercept input / output method "hello ()" and the logger with an external class "MonLogger". Code: public class test
{
public String hello (String msg)
{
String s = "Hello" + msg;
System.out.println (s);
return s;
}
} |
|
#4
| ||||
| ||||
| Re: Aspect Oriented Programming in Java
Aspect Oriented Programming (AOP) has been around for a long time but recently has begun to get more attention from the Microsoft .NET development community. As with any new adoption of technology, there tends to be many misconceptions of the technology and how to use it. AOP is no exception to this. To bring light to AOP, this article and the following code sample will demonstrate a practical application of AOP and some common problems that AOP can address. Taking an application that consumes a Web service, we will be extending functionality of the objects that the Web service returns by applying new aspects to them using an AOP framework. These aspects will provide for this functionality independent of the object model generated off the WSDL. |
|
#5
| |||
| |||
| Re: Aspect Oriented Programming in Java
Different types of advice are present in the AOP as below:
|
|
#6
| ||||
| ||||
| Re: Aspect Oriented Programming in Java
If you are using the AOP then it is having the benefits below:
|
![]() |
|
| Thread Tools | Search this Thread |
| |
Similar Threads for: "Aspect Oriented Programming in Java" | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Object oriented programming with java | cloud101 | Software Development | 2 | 22-02-2012 12:11 AM |
| What are the different types of Object Oriented Programming Languages? | fLUTE | Software Development | 4 | 11-07-2011 02:39 PM |
| static methods in object oriented programming | Satchel | Software Development | 5 | 07-01-2011 08:58 PM |
| What is Procedure Oriented Programming Language? | sRIPRIYA | Software Development | 4 | 03-01-2011 09:40 PM |
| The OOP Object Oriented programming Concept & its principle? | Bhavya | Software Development | 3 | 25-02-2009 08:16 PM |