JBoss.org Community Documentation

9.3.2. Create Class

Next step is to create a normal Java class.

  • Right click on the "src" directory in the Package Explorer and in the menu, click New > Class.
  • The only thing you should need to change is the Name of the class. Enter HelloAOP without quotes into the Name textbox, and click Finish

Modify the code for your class so it loks like

public class HelloAOP {

	public void callMe ()
	{
		System.out.println("AOP!");
	}
	
	public static void main (String args[])
	{
		new HelloAOP().callMe();
	}
}