Example #1
0
 private void registerAllBeans() {
   for (final Object ref : getAllCreatedBeanInstances()) {
     beanManager.addBeanToContext(ref, this);
   }
 }
Example #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);
 }