org.springframework.aop.support

Class AbstractExpressionPointcut

  • java.lang.Object
    • org.springframework.aop.support.AbstractExpressionPointcut
    • Field Summary

      • Fields inherited from interface org.springframework.aop.Pointcut

        TRUE
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getExpression()
      Return this pointcut's expression.
      java.lang.String getLocation()
      Return location information about the pointcut expression if available.
      protected void onSetExpression(java.lang.String expression)
      Called when a new pointcut expression is set.
      void setExpression(java.lang.String expression) 
      void setLocation(java.lang.String location)
      Set the location for debugging.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractExpressionPointcut

        public AbstractExpressionPointcut()
    • Method Detail

      • setLocation

        public void setLocation(@Nullable
                                java.lang.String location)
        Set the location for debugging.
      • getLocation

        @Nullable
        public java.lang.String getLocation()
        Return location information about the pointcut expression if available. This is useful in debugging.
        Returns:
        location information as a human-readable String, or null if none is available
      • setExpression

        public void setExpression(@Nullable
                                  java.lang.String expression)
      • onSetExpression

        protected void onSetExpression(@Nullable
                                       java.lang.String expression)
                                throws java.lang.IllegalArgumentException
        Called when a new pointcut expression is set. The expression should be parsed at this point if possible.

        This implementation is empty.

        Parameters:
        expression - expression to set
        Throws:
        java.lang.IllegalArgumentException - if the expression is invalid
        See Also:
        setExpression(java.lang.String)