Package org.springframework.data.mongodb.core.mapping

Examples of org.springframework.data.mongodb.core.mapping.GenericMappingTests$Container


                  encName = "java:comp/UserTransaction";
               }
            }
            else if (TimerService.class.getName().equals(envRef.getType()))
            {
               final Container ic = (Container) container;
               InjectorFactory<?> factory = new InjectorFactory<TimerServicePropertyInjector>()
               {
                  public TimerServicePropertyInjector create(BeanProperty property)
                  {
                     return new TimerServicePropertyInjector(property, ic);
View Full Code Here


                     mappedName = "java:comp/UserTransaction";
                  }
               }
               else if (resType.equals(TimerService.class))
               {
                  final Container ic = (Container) container;
                  InjectorFactory<?> factory = new InjectorFactory<TimerServicePropertyInjector>()
                  {
                     public TimerServicePropertyInjector create(BeanProperty property)
                     {
                        return new TimerServicePropertyInjector(property, ic);
View Full Code Here

      }
      // search everywhere
      Iterator containers = Ejb3Registry.getContainers().iterator();
      while (containers.hasNext())
      {
         Container container = (Container)containers.next();
         EJBContainer ejbContainer = (EJBContainer) container;
         if (ejbContainer == rtnContainer) continue;
         if (ProxyFactoryHelper.publishesInterface(container, businessIntf))
         {
            if (rtnContainer != null)
View Full Code Here

   public Object invoke(Invocation invocation) throws Throwable
   {
      if (isLocal())
      {
         String guid = (String)invocation.getMetaData(IS_LOCAL, GUID);
         Container container = Ejb3Registry.getContainer(guid);
        
         return invokeLocal(invocation, container);
      }
      return invocation.invokeNext();
   }
View Full Code Here

    * @param containerName The name of the container
    */
   private void unregisterContainer(String containerName)
   {
      // remove (any) locally stored reference to container
      Container container = this.singletonContainers.remove(containerName);
      // unregister from Ejb3Registry
      if (container != null)
      {
         Ejb3Registry.unregister(container);
      }
View Full Code Here

/*     */
/*     */   public Object handleStateful(Invocation invocation)
/*     */     throws Throwable
/*     */   {
/*  94 */     EJBContainerInvocation ejb = (EJBContainerInvocation)invocation;
/*  95 */     Container container = (Container)invocation.getAdvisor();
/*     */
/*  97 */     StatefulBeanContext ctx = (StatefulBeanContext)ejb.getBeanContext();
/*  98 */     Transaction tx = (Transaction)ctx.getMetaData().getMetaData("TX", "TX");
/*  99 */     if (tx != null)
/*     */     {
View Full Code Here

/* 106 */     if (ret != null)
/*     */     {
/* 108 */       return ret;
/*     */     }
/*     */
/* 111 */     Container container = Ejb3Registry.findContainer(this.containerGuid);
/* 112 */     if ((this.isClustered) && (container == null) && (Ejb3Registry.hasClusterContainer(this.containerClusterUid))) {
/* 113 */       container = Ejb3Registry.getClusterContainer(this.containerClusterUid);
/*     */     }
/* 115 */     if (container == null) {
/* 116 */       throw new EJBException("Invalid (i.e. remote) invocation of local interface (null container) for " + this.containerGuid);
View Full Code Here

/*    */   implements AspectFactory
/*    */ {
/*    */   public Object createPerClass(Advisor advisor)
/*    */   {
/* 50 */     Object domain = null;
/* 51 */     Container container = (Container)advisor;
/*    */     try
/*    */     {
/* 54 */       InitialContext ctx = container.getInitialContext();
/* 55 */       SecurityDomain securityAnnotation = (SecurityDomain)advisor.resolveAnnotation(SecurityDomain.class);
/*    */
/* 58 */       if (securityAnnotation == null) {
/* 59 */         return new NullInterceptor();
/*    */       }
View Full Code Here

/*    */ {
/* 38 */   private static final Logger log = Logger.getLogger(AuthenticationInterceptorFactory.class);
/*    */
/*    */   public Object createPerClass(Advisor advisor)
/*    */   {
/* 42 */     Container container = (Container)advisor;
/* 43 */     AuthenticationManager manager = (AuthenticationManager)container.getSecurityManager(AuthenticationManager.class);
/* 44 */     log.debug("Creating interceptor with authentication manager '" + manager + "'" + (manager != null ? " (security domain '" + manager.getSecurityDomain() + "')" : ""));
/*    */
/* 47 */     return new Ejb3AuthenticationInterceptorv2(container);
/*    */   }
View Full Code Here

/* 57 */     throw new RuntimeException(e);
/*    */   }
/*    */
/*    */   protected RealmMapping getSecurityManager(Advisor advisor)
/*    */   {
/* 63 */     Container container = (Container)advisor;
/* 64 */     return (RealmMapping)container.getSecurityManager(RealmMapping.class);
/*    */   }
View Full Code Here

TOP

Related Classes of org.springframework.data.mongodb.core.mapping.GenericMappingTests$Container

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.