Examples of resolveAnnotation()


Examples of org.jboss.aop.Advisor.resolveAnnotation()

         assertNotNull(someMD);
         someMD = (SomeMD)advisor.resolveAnnotation(SomeMD.class);
         assertNotNull(someMD);
         OtherMD otherMD = advisor.resolveTypedAnnotation(OtherMD.class);
         assertNull(otherMD);
         otherMD = (OtherMD)advisor.resolveAnnotation(OtherMD.class);
         assertNull(otherMD);
      }
     
      some = advisor.resolveTypedAnnotation(m, Some.class);
      assertNull(some);
View Full Code Here

Examples of org.jboss.aop.Advisor.resolveAnnotation()

         assertNull(otherMD);
      }
     
      some = advisor.resolveTypedAnnotation(m, Some.class);
      assertNull(some);
      some = (Some)advisor.resolveAnnotation(m, Some.class);
      assertNull(some);
      other = advisor.resolveTypedAnnotation(m, Other.class);
      assertNotNull(other);
      other = (Other)advisor.resolveAnnotation(m, Other.class);
      assertNotNull(other);
View Full Code Here

Examples of org.jboss.aop.Advisor.resolveAnnotation()

      assertNull(some);
      some = (Some)advisor.resolveAnnotation(m, Some.class);
      assertNull(some);
      other = advisor.resolveTypedAnnotation(m, Other.class);
      assertNotNull(other);
      other = (Other)advisor.resolveAnnotation(m, Other.class);
      assertNotNull(other);
      assertEquals("method", other.value());
     
      someAnn = advisor.resolveTypedAnnotation(m, SomeAnnotation.class);
      assertNull(some);
View Full Code Here

Examples of org.jboss.aop.Advisor.resolveAnnotation()

      assertNotNull(other);
      assertEquals("method", other.value());
     
      someAnn = advisor.resolveTypedAnnotation(m, SomeAnnotation.class);
      assertNull(some);
      someAnn = (SomeAnnotation)advisor.resolveAnnotation(m, SomeAnnotation.class);
      assertNull(some);
      otherAnn = advisor.resolveTypedAnnotation(m, OtherAnnotation.class);
      assertNotNull(otherAnn);
      otherAnn = (OtherAnnotation)advisor.resolveAnnotation(m, OtherAnnotation.class);
      assertNotNull(otherAnn);
View Full Code Here

Examples of org.jboss.aop.ClassAdvisor.resolveAnnotation()

   public BeanContext<T> createBean() throws Exception
   {
      try
      {
         ClassAdvisor advisor = container.getAdvisor();
         InterceptorFactoryRef interceptorFactoryRef = (InterceptorFactoryRef) advisor.resolveAnnotation(InterceptorFactoryRef.class);
         if(interceptorFactoryRef == null)
            throw new IllegalStateException("No InterceptorFactory specified on " + advisor.getName());
         log.debug("interceptor factory class = " + interceptorFactoryRef.value());
         InterceptorFactory interceptorFactory = interceptorFactoryRef.value().newInstance();
        
View Full Code Here

Examples of org.jboss.aop.ClassContainer.resolveAnnotation()

      container.setClass(Proxied.class);
      container.initializeClassContainer();
     
      Some some = container.resolveTypedAnnotation(Some.class);
      assertNotNull(some);
      some = (Some)container.resolveAnnotation(Some.class);
      assertNotNull(some);
      Other other = container.resolveTypedAnnotation(Other.class);
      assertNull(other);
      other = (Other)container.resolveAnnotation(Other.class);
      assertNull(other);
View Full Code Here

Examples of org.jboss.aop.annotation.AnnotationRepository.resolveAnnotation()

      Method member = beanClass.getDeclaredMethod("sayHi", String.class);
      String annotation = "javax.interceptor.Interceptors";
      String value = "@javax.interceptor.Interceptors (value={" + DummyInterceptor.class.getName() + ".class})";
      repository.addAnnotation(member, annotation, value);
     
      Interceptors interceptors = (Interceptors) repository.resolveAnnotation(member, Interceptors.class);
      assertArrayEquals(new Class[] { DummyInterceptor.class }, interceptors.value());
   }
}
View Full Code Here

Examples of org.jboss.ejb3.EJBContainer.resolveAnnotation()

   public void start() throws Exception
   {
      super.start();
      EJBContainer statelessContainer = (EJBContainer) getContainer();
      RemoteHome remoteHome = (RemoteHome) statelessContainer.resolveAnnotation(RemoteHome.class);
      if (remoteHome != null && !bindHomeAndBusinessTogether(statelessContainer))
      {
         Object homeProxy = createHomeProxy(remoteHome.value());
         String jndiName = ProxyFactoryHelper.getHomeJndiName(getContainer());
         try
View Full Code Here

Examples of org.jboss.ejb3.EJBContainer.resolveAnnotation()

   public void stop() throws Exception
   {
      super.stop();
      EJBContainer statelessContainer = (EJBContainer) getContainer();
      RemoteHome remoteHome = (RemoteHome) statelessContainer.resolveAnnotation(RemoteHome.class);
      if (remoteHome != null && !bindHomeAndBusinessTogether(statelessContainer))
      {
         Util.unbind(getContainer().getInitialContext(), ProxyFactoryHelper.getHomeJndiName(getContainer()));
      }
   }
View Full Code Here

Examples of org.jboss.ejb3.EJBContainer.resolveAnnotation()

   {
      EJBContainer ejbContainer = (EJBContainer)container;
     
      HomeHandleImpl homeHandle = null;
     
      RemoteBinding remoteBindingAnnotation = (RemoteBinding)ejbContainer.resolveAnnotation(RemoteBinding.class);
      if (remoteBindingAnnotation != null)
         homeHandle = new HomeHandleImpl(ProxyFactoryHelper.getHomeJndiName(container));
     
      return homeHandle;
   }
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.