示例#1
0
 /** Registers all created beans with the bean manager. */
 private void registerAllBeans() {
   for (final Object ref : getAllCreatedBeanInstances()) {
     beanManager.addBeanToContext(ref, this);
   }
 }
示例#2
0
 /**
  * Adds a lookup from a proxy to the actual bean instance that it is proxying. This is called
  * directly by the bootstrapping code.
  *
  * @param proxyRef the reference to the proxy instance
  * @param realRef the reference to the actual bean instance which the proxy wraps
  */
 @SuppressWarnings("UnusedDeclaration") // used by generated code
 public void addProxyReference(final Object proxyRef, final Object realRef) {
   beanManager.addProxyReference(proxyRef, realRef);
 }