Declaring an aspect:-
Using the schema support, an aspect is simply a regular Java object defined as a bean in your Spring application context. The state and behavior is captured in the fields and methods of the object, and the pointcut and advice information is captured in the XML.
Declaring an aspect An aspect is declared using the <aop:aspect>
element, and the backing bean is referenced using the ref attribute as
<aop:aspect id="loginAspect" ref="loginAspect">
<bean id="loginAspect" class="com.r4r.in.Register.loginAspect">
Here "LoginAspect" will be configured and dependency injected just like any other Spring bean.