Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] inner classes and Parent.this

hi,

i've got the following scenario:

class C	(PageableTable)
{
	class Inner		(Navigator)
	{

	}
}


i would like to catch the creation of non-static Inner class instances
and register them to C.

after(PageableTable table, Navigator navigator):
	execution(Navigator.new(..)) && this(navigator) &&    ???
{
	table.navigators.add(navigator);
	navigator.setCurrentPage(0);

	// there's no way to access PageableTable.this from here
}

any suggestions are wellcome,

101


Back to the top