X-RAY

8
X-RAY

description

X-RAY. The WebOfPatterns plugin adds new functionality to Eclipse. A java project can be scanned for instances of design patterns. The design pattern scanner uses reflection, naming pattern and AST analysis. The patterns are formally defined using RDF. - PowerPoint PPT Presentation

Transcript of X-RAY

Page 1: X-RAY

X-RAY

Page 2: X-RAY

A java project can be scanned for instances

of design patterns

The results are represented in a

table – design pat-tern participants

are associated with Java artifacts

The WebOfPatterns plugin adds new functionality to Eclipse

The design pattern scanner uses reflection, naming pattern and AST analysis.

The patterns are formally defined using RDF.

Results can be exported as XML files. These files can be used to generate reports. Results can be

aggregated to reveal the macrostructure of the program..

Page 3: X-RAY

a smell

a pattern

a configmap

a patterna refactoring

<<publish>> <<feedback>>

<<consume>>

the web

Page 4: X-RAY

Patterns are stored in a local database.

Patterns can be discovered on the web using search engines, and bookmarking services.

Rules can be used to select good and trustworthy patterns.

Patterns are validated in order to ensure that they comply with the format.

Page 5: X-RAY

For instance, they can rate a pattern on a scale. The rating is then used by others to select “good” patterns.

Users can provide feedback for pattern repositories.

Page 6: X-RAY

Patterns are extracted from a Java project.

Relevant artifacts (classes, methods, relationships, etc) are selected from the project.

These artifacts are then mapped to abstract concepts (pattern participants), and the formal pattern definition is generated.

Page 7: X-RAY

Explicit properties that are part of the pattern definition.

Contextual knowledge.

Properties contributed by extensions. These are “network” properties.

Because they are “network” properties, they are sometimes not available ..

Page 8: X-RAY

Rules are based on explicit and contributed properties.

Rules are used to select good patterns.

Rules are saved in the XML based SWRL format.