<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://debianws.lexgopc.com/wiki1463/index.php?action=history&amp;feed=atom&amp;title=Pointcut</id>
	<title>Pointcut - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://debianws.lexgopc.com/wiki1463/index.php?action=history&amp;feed=atom&amp;title=Pointcut"/>
	<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki1463/index.php?title=Pointcut&amp;action=history"/>
	<updated>2026-12-04T09:43:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.3</generator>
	<entry>
		<id>http://debianws.lexgopc.com/wiki1463/index.php?title=Pointcut&amp;diff=159972&amp;oldid=prev</id>
		<title>imported&gt;BlaqWiedow: /* Criticisms */ Removed deprecated citeseerx parameter and added info to citation</title>
		<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki1463/index.php?title=Pointcut&amp;diff=159972&amp;oldid=prev"/>
		<updated>2026-09-24T01:35:05Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Criticisms: &lt;/span&gt; Removed deprecated citeseerx parameter and added info to citation&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;In [[aspect-oriented programming]], a &amp;#039;&amp;#039;&amp;#039;pointcut&amp;#039;&amp;#039;&amp;#039; is a set of [[join point]]s. A pointcut specifies where exactly to apply an [[Advice in aspect-oriented programming|advice]], which allows separation of concerns and helps in modularizing business logic.&amp;lt;ref&amp;gt;{{Cite web|url=https://pp.ipd.kit.edu/uploads/publikationen/stoerzer05splat.pdf|title=A Classification of Pointcut Language Constructs|last=|first=|date=|website=|publisher=|access-date=29 December 2019}}&amp;lt;/ref&amp;gt; Pointcuts are often specified using class names or method names, in some cases using regular expressions that match class or method names. Different frameworks support different Pointcut expressions; [[AspectJ]] syntax is considered as de facto standard. Frameworks are available for various programming languages like [[Java (programming language)|Java]], [[Perl]], [[Ruby (programming language)|Ruby]], and many more which support pointcuts {{Citation needed|reason=No further enumeration of the frameworks was provided|date=July 2025}}.&lt;br /&gt;
&lt;br /&gt;
== Background ==&lt;br /&gt;
Due to limitations in various programming languages, [[cross-cutting concern]] has not modularized. Cross-cutting concern refers to parts of software that logically belong to one module and affect the whole system: this could be security or logging, for example.&amp;lt;ref&amp;gt;{{Cite web|url=https://eclipse.org/aspectj/doc/next/progguide/starting-aspectj.html|title=Introduction to AspectJ|last=|first=|date=|website=|publisher=|access-date=14 September 2016}}&amp;lt;/ref&amp;gt; [[Aspect-oriented programming]] tries to solve these cross cutting concerns by allowing programmers to write modules called aspects, which contain pieces of code executed at particular point. The expressions required to select a particular point led to creation of Pointcut Expressions.&lt;br /&gt;
&lt;br /&gt;
==Execution==&lt;br /&gt;
Whenever the program execution reaches one of the join points described in the pointcut, a piece of code associated with the pointcut (called advice) is executed. This allows a programmer to describe where and when additional code should be executed in addition to already-defined behavior. Pointcut permits the addition of aspects to existing software, as well as the design of software with a clear [[separation of concerns]], wherein the programmer [[aspect weaver|weaves]] (merges) different aspects into a complete application.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Suppose there is an application where we can modify records in a [[database]]. Whenever users modify the database, we want to have a log of information regarding who is modifying the records. The traditional way to log is to call a log method just before modifying the database. With aspect-oriented programming, we can apply pointcut to the Modify Database method and have an advice that is called to log the required information.&amp;lt;ref&amp;gt;{{Cite web|url=http://docs.jboss.org/aop/1.0/aspect-framework/userguide/en/html_single/index.html#what|title=JBoss AOP - User Guide|website=docs.jboss.org|access-date=2016-09-14}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Expressions ==&lt;br /&gt;
Following are some important pointcut expressions supported by [[AspectJ]]. These expressions can be combined using logical operators.&amp;lt;ref&amp;gt;{{Cite web|url=https://eclipse.org/aspectj/doc/next/progguide/language-joinPoints.html|title=Join Points and Pointcuts|last=|first=|date=|website=|publisher=|access-date=14 September 2016}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
execution(void User.setPassword(password))&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
This pointcut matches execution of the User.setPassword method.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
call(void User.getPassword())&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
When User.getPassword is called, this pointcut is matched.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
handler(ArrayIndexOutOfBounds)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Pointcut will match when there is an ArrayIndexOutOfBounds exception&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
this(UserType)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Pointcut will match when the object currently executing is of UserType.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
target(UserType)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Pointcut will match when the target object is of UserType.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
within(UserType)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Pointcut will match when the code executing belongs to UserType.&lt;br /&gt;
&lt;br /&gt;
== Criticisms ==&lt;br /&gt;
Pointcut languages impact important software properties like [[evolvability]] and comprehensibility in a negative way. There might be a possibility where there is a need to perform [[Code refactoring|refactoring]] to define a correct aspect, which in general should not happen since refactoring is to make code cleaner. It is also not [[scalable]] when there are multiple aspects to be applied on the same code and each aspect requires a different refactoring.&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;{{Cite web |title=Inductively generated PointCuts to support refactoring to Aspects |year=2004 |url=https://soft.vub.ac.be/Publications/2004/vub-prog-tr-04-09.pdf |first1=Tom |last1=Tourwé |first2=Andy |last2=Kellens |first3=Wim |last3=Vanderperren |first4=Frederik |last4=Vannieuwenhuyse}}&amp;lt;/ref&amp;gt; In general every aspect will be tightly coupled with an application&amp;#039;s structure as the pointcuts explicitly contain a method&amp;#039;s signature, so when an application changes the pointcut needs to be changed as well. This can be quite problematic for a developer.&amp;lt;ref name=&amp;quot;:0&amp;quot; /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{reflist}}&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
*Paper &amp;quot;[http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.59.1936 Back to the Future: Pointcuts as Predicates over Traces]&amp;quot; by [[Karl Klose]] and [[Klaus Ostermann]]&lt;br /&gt;
*Paper &amp;quot;[http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.1.9857 Remote Pointcut - A Language Construct for Distributed AOP]&amp;quot; by [[Muga Nishizawa]], [[Shigeru Chiba]] and [[Michiaki Tatsubori]]&lt;br /&gt;
*Paper &amp;quot;[http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.96.974 Datalog as a Pointcut Language in Aspect-Oriented Programming]&amp;quot;&lt;br /&gt;
*Paper &amp;quot;[http://www.ccs.neu.edu/research/demeter/biblio/unified.html Expressiveness and Complexity of Crosscut Languages]&amp;quot; by [[Karl J. Lieberherr]], [[Jeffrey Palm]] and [[Ravi Sundaram]]&lt;br /&gt;
&lt;br /&gt;
{{aosd}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Aspect-oriented software development]]&lt;br /&gt;
[[Category:Aspect-oriented programming]]&lt;/div&gt;</summary>
		<author><name>imported&gt;BlaqWiedow</name></author>
	</entry>
</feed>