com.xenonsoft.bridgetown.aop.impl
Class DefaultMethodJoinPoint

java.lang.Object
  extended bycom.xenonsoft.bridgetown.aop.impl.DefaultMethodJoinPoint
All Implemented Interfaces:
IJoinPoint, IMethodJoinPoint, java.io.Serializable

public class DefaultMethodJoinPoint
extends java.lang.Object
implements IMethodJoinPoint, java.io.Serializable

Default implementation of the method join point. The object stores two finder. The first, the class finder, looks up the class name. The second, looks up the method name.

Please note: This class does not perform any form of association itself. Instead both finder objects must implement some type of look-up search algorithm (for example a GLOB pattern matching). in order to locate the point cut in the current JVM process.

Version:
$Id: DefaultMethodJoinPoint.java,v 1.6 2005/03/29 23:41:23 peter_pilgrim Exp $
Author:
ppilgrim, 01-Oct-2004 17:47:10
See Also:
Serialized Form

Constructor Summary
DefaultMethodJoinPoint()
          Constructor for Default method join point
DefaultMethodJoinPoint(java.lang.String classExpr, java.lang.String methodExpr)
          Constructor that accepts expression arguments
 
Method Summary
 void define(java.lang.String classExpr, java.lang.String methodExpr)
          A callback method designed for assembly factories to use that defines the method joinpoint after instantiating it dynamically.
 IClassFinder getClassFinder()
          Returns the class finder associated with this method join point.
 IMethodFinder getMethodFinder()
          Returns method class finder associated with this method join point.
 void setClassExpression(java.lang.String classExpr)
          Sets the class expression for this method pointcut
 void setMethodExpression(java.lang.String methodExpr)
          Sets the class expression for this method pointcut
 java.lang.String toString()
          Prints the debuggable string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultMethodJoinPoint

public DefaultMethodJoinPoint()
Constructor for Default method join point


DefaultMethodJoinPoint

public DefaultMethodJoinPoint(java.lang.String classExpr,
                              java.lang.String methodExpr)
Constructor that accepts expression arguments

Parameters:
classExpr - the global expression for matching a class.
methodExpr - the global expression for matching a method.
Method Detail

getClassFinder

public IClassFinder getClassFinder()
Returns the class finder associated with this method join point. Implements / overrides getClassFinder

Specified by:
getClassFinder in interface IMethodJoinPoint
Returns:
the class finder
See Also:
IMethodJoinPoint.getClassFinder()

getMethodFinder

public IMethodFinder getMethodFinder()
Returns method class finder associated with this method join point. Implements / overrides getMethodFinder

Specified by:
getMethodFinder in interface IMethodJoinPoint
Returns:
the method finder
See Also:
IMethodJoinPoint.getMethodFinder()

setClassExpression

public void setClassExpression(java.lang.String classExpr)
Sets the class expression for this method pointcut

Parameters:
classExpr - the class expression

setMethodExpression

public void setMethodExpression(java.lang.String methodExpr)
Sets the class expression for this method pointcut

Parameters:
methodExpr - the class expression

define

public void define(java.lang.String classExpr,
                   java.lang.String methodExpr)
A callback method designed for assembly factories to use that defines the method joinpoint after instantiating it dynamically.

Specified by:
define in interface IMethodJoinPoint
Parameters:
classExpr - the class finder expression
methodExpr - the method finder expression

toString

public java.lang.String toString()
Prints the debuggable string

Returns:
debug string
See Also:
Object.toString()


Copyright © 2005 XeNoNSoFT.com. All Rights Reserved.