Package org.jboss.ejb3.aop.annotation

Examples of org.jboss.ejb3.aop.annotation.CachingAnnotationRepository.resolveAnnotation()


/*     */     }
/* 138 */     assert (!Dispatcher.singleton.isRegistered(targetId)) : (targetId + " is already registered");
/* 139 */     Dispatcher.singleton.registerTarget(targetId, this);
/*     */
/* 141 */     SessionContainer statefulContainer = (SessionContainer)getContainer();
/* 142 */     RemoteHome remoteHome = (RemoteHome)statefulContainer.resolveAnnotation(RemoteHome.class);
/* 143 */     if ((remoteHome != null) && (!bindHomeAndBusinessTogether(statefulContainer)))
/*     */     {
/* 145 */       Object homeProxy = createHomeProxy(remoteHome.value());
/* 146 */       String homeJndiName = ProxyFactoryHelper.getHomeJndiName(getContainer());
/* 147 */       log.debug("Binding home proxy at " + homeJndiName);
View Full Code Here


/*     */   {
/* 154 */     Util.unbind(getContainer().getInitialContext(), this.jndiName + "StatefulProxyFactory");
/* 155 */     Dispatcher.singleton.unregisterTarget(getTargetId());
/*     */
/* 157 */     SessionContainer statefulContainer = (SessionContainer)getContainer();
/* 158 */     RemoteHome remoteHome = (RemoteHome)statefulContainer.resolveAnnotation(RemoteHome.class);
/* 159 */     if ((remoteHome != null) && (!bindHomeAndBusinessTogether(statefulContainer)))
/*     */     {
/* 161 */       Util.unbind(getContainer().getInitialContext(), ProxyFactoryHelper.getHomeJndiName(getContainer()));
/*     */     }
/* 163 */     super.stop();
View Full Code Here

/*     */   }
/*     */
/*     */   protected Class<?>[] getInterfaces()
/*     */   {
/*  71 */     SessionContainer statefulContainer = (SessionContainer)getContainer();
/*  72 */     LocalHome localHome = (LocalHome)statefulContainer.resolveAnnotation(LocalHome.class);
/*     */
/*  74 */     boolean bindTogether = false;
/*     */
/*  76 */     if ((localHome != null) && (bindHomeAndBusinessTogether(statefulContainer))) {
/*  77 */       bindTogether = true;
View Full Code Here

      {
         if (manager instanceof StatelessContainer)
         {
            StatelessContainer container = (StatelessContainer)manager;

            SecurityDomain anSecurityDomain = (SecurityDomain)container.resolveAnnotation(SecurityDomain.class);
            if (anSecurityDomain != null)
            {
               if (securityDomain != null && !securityDomain.equals(anSecurityDomain.value()))
                  throw new IllegalStateException("Multiple security domains not supported");
View Full Code Here

      {
         if (manager instanceof StatelessContainer)
         {
            StatelessContainer container = (StatelessContainer)manager;

            RolesAllowed anRolesAllowed = (RolesAllowed)container.resolveAnnotation(RolesAllowed.class);
            if (anRolesAllowed != null)
            {
               for (String role : anRolesAllowed.value())
               {
                  webApp.addElement("security-role").addElement("role-name").addText(role);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.