bindAspect(classes,methods,aspects)
match()
.... stuff? Well, the classes and methods arguments of the bindAspect()
call uses our AOP funky matcher methods that exist in an object called: wirebox.system.aop.Matcher
. This matcher object is used to match classes and methods to whatever criteria you like. The binder has a convenience method called match()
that creates a new matcher object for you and returns it so you can configure it for classes and method matching. Here are the most common matching methods below: