1,214 research outputs found
DESIGN PATTERN PADA ASPECT ORIENTED PROGRAMMING DESIGN PATTERN IN ASPECT ORIENTED PROGRAMMING
ABSTRAKSI: Pemrograman berorientasi objek sangat popular dalam dunia rekayasa perangkat lunak, karena dapat mengurangi kompleksitas dalam pemrograman. Masalah yang muncul adalah jika dalam suatu objek atau kelas terdapat suatu aspek yang unik, dan tidak dapat dienkapsulasi menjadi satu objek, atau yang biasa dikenal dengan crosscutting concern. Hal ini dapat menyebabkan modularitas menjadi tidak bersih. Permasalahan lain yang terjadi adalah tentang desain pemrograman berorientasi objek yang harus menangani permasalahan yang muncul secara berulang-ulang, sehingga perlu dicari solusi umum untuk mengatasi permasalahan tersebut.Dalam kasus ini, penulis menerapkan implementasi dari design pattern pada aspect-oriented programming (AOP), yang mana AOP sendiri dibangun berdasarkan object-oriented programming (OOP). Namun satu hal yang berbeda bahwa AOP menjanjikan suatu kemampuan dalam hal melokalisir kode (biasa disebut sebagai alat modularizing crosscutting), yang tidak terdapat dalam OOP. Sedangkan design pattern menawarkan sebuah solusi yang flexibel dalam masalah pengembangan perangkat lunak, yaitu mendukung adanya penggunaan kembali pendekatan dan teknik yang sudah terbukti. Sehingga bila kedua hal ini digabungkan, maka dapat mengurangi kedua permasalahan yang terjadi.Untuk pengembangan design pattern pada AOP ini diimplementasikan dalam AspectJ. AspectJ merupakan perluasan dari aspect-oriented extension pada Java, yang berarti bahwa pemrograman pada AspectJ itu sama saja dengan pemrograman dalam Java dalam aspek yang lebih.Kata Kunci : aspectj, aspect-oriented extension, aspect-oriented programming,ABSTRACT: Design Pattern represents a general solution to internal issues in certain contexts, supporting proven techniques and approaches. Design Pattern offers solutions which are flexibel to be used in solving problems of software development.In this case, writer apply implementation from design pattern of aspectoriented programming (AOP), where AOP itself was developed from objectoriented programming (OOP). One difference is AOP promise an ability in the case of localizing code (usually referred to means of modularizing crosscutting), which is not there in OOP.For development of design Pattern at AOP is implemented by Aspectj. Aspectj is a represent extension from aspect-oriented extension for Java, which means that programming at AspectJ the same with programming in Java in more aspect.Keyword: aspectj, aspect-oriented extension, aspect-oriented programming
Recommended from our members
Towards an aspect weaving BPEL engine
This position paper proposes the use of dynamic aspects and
the visitor design pattern to obtain a highly configurable and
extensible BPEL engine. Using these two techniques, the
core of this infrastructural software can be customised to
meet new requirements and add features such as debugging,
execution monitoring, or changing to another Web Service
selection policy. Additionally, it can easily be extended to
cope with customer-specific BPEL extensions. We propose
the use of dynamic aspects not only on the engine itself
but also on the workflow in order to tackle the problems of
Web Service hot deployment and hot fixes to long running
processes. In this way, composing aWeb Service "on-the-fly"
means weaving its choreography interface into the workflow
A Systematic Aspect-Oriented Refactoring and Testing Strategy, and its Application to JHotDraw
Aspect oriented programming aims at achieving better modularization for a
system's crosscutting concerns in order to improve its key quality attributes,
such as evolvability and reusability. Consequently, the adoption of
aspect-oriented techniques in existing (legacy) software systems is of interest
to remediate software aging. The refactoring of existing systems to employ
aspect-orientation will be considerably eased by a systematic approach that
will ensure a safe and consistent migration.
In this paper, we propose a refactoring and testing strategy that supports
such an approach and consider issues of behavior conservation and (incremental)
integration of the aspect-oriented solution with the original system. The
strategy is applied to the JHotDraw open source project and illustrated on a
group of selected concerns. Finally, we abstract from the case study and
present a number of generic refactorings which contribute to an incremental
aspect-oriented refactoring process and associate particular types of
crosscutting concerns to the model and features of the employed aspect
language. The contributions of this paper are both in the area of supporting
migration towards aspect-oriented solutions and supporting the development of
aspect languages that are better suited for such migrations.Comment: 25 page
Pluggable AOP: Designing Aspect Mechanisms for Third-party Composition
Studies of Aspect-Oriented Programming (AOP) usually focus on a language in
which a specific aspect extension is integrated with a base language. Languages
specified in this manner have a fixed, non-extensible AOP functionality. In
this paper we consider the more general case of integrating a base language
with a set of domain specific third-party aspect extensions for that language.
We present a general mixin-based method for implementing aspect extensions in
such a way that multiple, independently developed, dynamic aspect extensions
can be subject to third-party composition and work collaboratively
A heuristic-based approach to code-smell detection
Encapsulation and data hiding are central tenets of the object oriented paradigm. Deciding what data and behaviour to form into a class and where to draw the line between its public and private details can make the difference between a class that is an understandable, flexible and reusable abstraction and one which is not. This decision is a difficult one and may easily result in poor encapsulation which can then have serious implications for a number of system qualities. It is often hard to identify such encapsulation problems within large software systems until they cause a maintenance problem (which is usually too late) and attempting to perform such analysis manually can also be tedious and error prone. Two of the common encapsulation problems that can arise as a consequence of this decomposition process are data classes and god classes. Typically, these two problems occur together – data classes are lacking in functionality that has typically been sucked into an over-complicated and domineering god class. This paper describes the architecture of a tool which automatically detects data and god classes that has been developed as a plug-in for the Eclipse IDE. The technique has been evaluated in a controlled study on two large open source systems which compare the tool results to similar work by Marinescu, who employs a metrics-based approach to detecting such features. The study provides some valuable insights into the strengths and weaknesses of the two approache
An empirical study of aspect-oriented metrics
Metrics for aspect-oriented software have been proposed and used to investigate the benefits and the disadvantages of crosscutting concerns modularisation. Some of these metrics have not been rigorously defined nor analytically evaluated. Also, there are few empirical data showing typical values of these metrics in aspect-oriented software. In this paper, we provide rigorous definitions, usage guidelines, analytical evaluation, and empirical data from ten open source projects, determining the value of six metrics for aspect-oriented software (lines of code, weighted operations in module, depth of inheritance tree, number of children, crosscutting degree of an aspect, and coupling on advice execution). We discuss how each of these metrics can be used to identify shortcomings in existing aspect-oriented software. (C) 2012 Elsevier B.V. All rights reserved.CNPq [140046/06-2]; Project CNPQ-PROSUL [490478/06-9]; Capes-Grices [2051-05-2]; FAPERGS [10/0470-1]; FCT MCTESinfo:eu-repo/semantics/publishedVersio
- …