Class ProxyProcessorSupport

    • Method Detail

      • setOrder

        public void setOrder​(int order)
        Set the ordering which will apply to this processor's implementation of Ordered, used when applying multiple processors.

        The default value is Ordered.LOWEST_PRECEDENCE, meaning non-ordered.

        Parameters:
        order - the ordering value
      • getOrder

        public int getOrder()
        Description copied from interface: Ordered
        Get the order value of this object.

        Higher values are interpreted as lower priority. As a consequence, the object with the lowest value has the highest priority (somewhat analogous to Servlet load-on-startup values).

        Same order values will result in arbitrary sort positions for the affected objects.

        Specified by:
        getOrder in interface Ordered
        Returns:
        the order value
        See Also:
        Ordered.HIGHEST_PRECEDENCE, Ordered.LOWEST_PRECEDENCE
      • setProxyClassLoader

        public void setProxyClassLoader​(ClassLoader classLoader)
        Set the ClassLoader to generate the proxy class in.

        Default is the bean ClassLoader, i.e. the ClassLoader used by the containing BeanFactory for loading all bean classes. This can be overridden here for specific proxies.

      • isConfigurationCallbackInterface

        protected boolean isConfigurationCallbackInterface​(Class<?> ifc)
        Determine whether the given interface is just a container callback and therefore not to be considered as a reasonable proxy interface.

        If no reasonable proxy interface is found for a given bean, it will get proxied with its full target class, assuming that as the user's intention.

        Parameters:
        ifc - the interface to check
        Returns:
        whether the given interface is just a container callback
      • isInternalLanguageInterface

        protected boolean isInternalLanguageInterface​(Class<?> ifc)
        Determine whether the given interface is a well-known internal language interface and therefore not to be considered as a reasonable proxy interface.

        If no reasonable proxy interface is found for a given bean, it will get proxied with its full target class, assuming that as the user's intention.

        Parameters:
        ifc - the interface to check
        Returns:
        whether the given interface is an internal language interface