Only to complement (xml complete):

  | 
  | <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  | <aop>
  |     <aspect class="aspects.distribution.HealthWatcherServerSideAspect"
  |             scope="PER_VM" />
  | 
  |     <aspect class="aspects.distribution.HealthWatcherClientSideAspect"
  |             scope="PER_VM" />
  | 
  | 
  | 
  |     <aspect 
class="aspects.dataManagement.nonpersistent.DataCollectionNonPersistent"
  |             scope="PER_VM" />
  | 
  | 
  | 
  |     <aspect 
class="aspects.dataManagement.persistent.DataCollectionPersistent"
  |             scope="PER_VM" />
  | 
  | 
  | 
  | 
  |     <aspect 
class="aspects.dataManagement.persistent.PersistenceControlHealthWatcher"
  |             scope="PER_VM" />
  | 
  |     <pointcut
  |             expr="execution(public void 
gui.servlets.ServletWebServer->init(javax.servlet.ServletConfig))"
  |             name="facadeMainExecution" />
  |             
  |     <bind pointcut="facadeMainExecution">
  |             <advice
  |                     
aspect="aspects.distribution.HealthWatcherServerSideAspect"
  |                     name="beforeFacadeMainExecution" />
  |     </bind>
  | 
  | 
  |     <pointcut name="facadeCallers"
  |             expr="within($instanceof{javax.servlet.http.HttpServlet})" />
  | 
  | <!--
  |     <pointcut name="facadeCalls"
  |             expr="call(* controllers.HealthWatcherFacade->*(..)) AND 
!call(static * controllers.HealthWatcherFacade->*(..))" />
  | 
  | -->
  | 
  |     <pointcut name="facadeCalls"
  |             expr="call(* 
$instanceof{aspects.distribution.rmi.IRemoteFacade}->*(..)) AND !call(static * 
$instanceof{aspects.distribution.rmi.IRemoteFacade}->*(..))" />
  | 
  |     <bind pointcut="facadeCallers AND facadeCalls">
  |             <advice
  |                     
aspect="aspects.distribution.HealthWatcherClientSideAspect"
  |                     name="aroundFacadeLocalCalls" />
  |     </bind>
  |     
  | 
  |     <pointcut name="recordsCreation"
  |             
expr="within($instanceof{aspects.dataManagement.util.SystemRecord}) AND 
!within($instanceof{AbstractDataCollectionCustomization})" />   
  |             
  |     <introduction
  |             expr="class(complaint.ComplaintRecord) 
  |                                             OR 
class(healthGuide.HealthUnitRecord) 
  |                                             OR 
class(healthGuide.MedicalSpecialtyRecord)
  |                                             OR 
class(employee.EmployeeRecord) 
  |                                             OR 
class(complaint.DiseaseRecord)">
  |             <mixin>
  |                     <interfaces>
  |                             aspects.dataManagement.util.SystemRecord
  |                     </interfaces>
  |                     
<class>aspects.dataManagement.util.SystemRecordImpl</class>
  |                     <construction>
  |                             new 
aspects.dataManagement.util.SystemRecordImpl()
  |                     </construction>
  |             </mixin>
  |     </introduction>         
  |     
  |     <bind pointcut="recordsCreation">
  |             <advice
  |                     
aspect="aspects.dataManagement.nonpersistent.DataCollectionNonPersistent"
  |                     name="aroundRecordsCreation" />
  |                     
  |             <advice
  |                     
aspect="aspects.dataManagement.persistent.DataCollectionPersistent"
  |                     name="aroundRecordsCreation" />                 
  |     </bind> 
  |     
  | 
  |  <!--
  |             <pointcut name="connectionOperations"
  |             expr="call(void IPersistenceMechanism->connect()) OR 
  |         call(void IPersistenceMechanism->disconnect())" />
  | 
  | -->
  |     
  |     <pointcut name="initSystem"
  |             expr="call(* controllers.HealthWatcherFacade->new(..))" /> 
  | 
  | 
  |     <pointcut name="obtainPmInstance"
  |             expr="call(* 
aspects.dataManagement.dataCollections.rdbms.PersistenceMechanismRDBMS->getInstance(..))"
 /> 
  | 
  |     <bind pointcut="initSystem">
  |             <advice
  |                     
aspect="aspects.dataManagement.persistent.PersistenceControlHealthWatcher"
  |                     name="aroundRecordsCreation" />
  |     </bind> 
  | 
  | </aop>
  | 
  | 
  | 
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3991171#3991171

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3991171
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to