com.aurorasoftworks.signal.runtime.core.context.proxy
Interface IBeanDelegate

All Known Subinterfaces:
IBeanReference
All Known Implementing Classes:
AbstractBeanReference, EagerInitBeanReference, LazyInitBeanReference

public interface IBeanDelegate

A proxy object for a bean registered in a context. The notion of a reference is needed to support lazy initialization.

Author:
Marek

Method Summary
 java.lang.Object getBean()
          Returns the wrapped bean.
 java.lang.Class getBeanClass()
          Returns the class of the wrapped bean.
 

Method Detail

getBean

java.lang.Object getBean()
                         throws java.lang.Exception
Returns the wrapped bean.

Returns:
wrapped bean
Throws:
ContextException - if an error occurs while retrieving the bean
java.lang.Exception

getBeanClass

java.lang.Class getBeanClass()
Returns the class of the wrapped bean. This method is useful for determining a class of a bean that may not actually be created until getBean() is invoked.

Returns:
class of the wrapped bean


Copyright © 2010. All Rights Reserved.