org.springframework.samples.petclinic.aspects
Class UsageLogAspect

java.lang.Object
  extended by org.springframework.samples.petclinic.aspects.UsageLogAspect

public class UsageLogAspect
extends java.lang.Object

Sample AspectJ annotation-style aspect that saves every owner name requested to the clinic.

Since:
2.0
Author:
Rod Johnson, Juergen Hoeller

Constructor Summary
UsageLogAspect()
           
 
Method Summary
 java.util.List<java.lang.String> getNamesRequested()
           
 void logNameRequest(java.lang.String name)
           
 void setHistorySize(int historySize)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UsageLogAspect

public UsageLogAspect()
Method Detail

setHistorySize

public void setHistorySize(int historySize)

logNameRequest

public void logNameRequest(java.lang.String name)

getNamesRequested

public java.util.List<java.lang.String> getNamesRequested()


Copyright © 2010. All Rights Reserved.