Interface BeanInstance

All Known Implementing Classes:
AbstractBeanInstance, ContextBeanInstance, EnterpriseTargetBeanInstance, TargetBeanInstance

public interface BeanInstance
Each proxy maintains a single bean instance on which methods are invoked. Different types of bean instances can also be used to provide varying methods of obtaining the actual instance from the container.
Author:
David Allen
  • Method Details

    • getInstance

      Object getInstance()
      Returns the current instance for a proxy.
      Returns:
      the current bean instance
    • getInstanceType

      Class<?> getInstanceType()
    • invoke

      Object invoke(Object instance, Method method, Object... arguments) throws Throwable
      Throws:
      Throwable