Class MethodCache

java.lang.Object
com.yahoo.collections.MethodCache

public final class MethodCache extends Object
This will cache methods solved by reflection as reflection is expensive. Note that if the bundle from which the method is removed/changed you might have a problem... A ClassCastException might be one indication. Then clearing the cache and retrying it once to see if it goes away might be a solution.
Author:
baldersheim
  • Constructor Details

    • MethodCache

      public MethodCache(String methodName)
  • Method Details

    • clear

      public void clear()
    • get

      public Method get(Object object)