80 likes | 315 Views
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.
E N D
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. The results are represented in a table – design pat-tern participants are associated with Java artifacts 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..
<<publish>> <<feedback>> the web a pattern a smell a refactoring a pattern a configmap <<consume>>
Rules can be used to select good and trustworthy patterns. Patterns can be discovered on the web using search engines, and bookmarking services. Patterns are stored in a local database. Patterns are validated in order to ensure that they comply with the format.
Users can provide feedback for pattern repositories. For instance, they can rate a pattern on a scale. The rating is then used by others to select “good” patterns.
Relevant artifacts (classes, methods, relationships, etc) are selected from the project. Patterns are extracted from a Java project. These artifacts are then mapped to abstract concepts (pattern participants), and the formal pattern definition is generated.
Contextual knowledge. Explicit properties that are part of the pattern definition. Properties contributed by extensions. These are “network” properties. Because they are “network” properties, they are sometimes not available ..
Rules are saved in the XML based SWRL format. Rules are used to select good patterns. Rules are based on explicit and contributed properties.