Examples of resolveAnnotation()


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

      this.pool = this.ejbContainer.getPool();
      ClassLoader cl = this.ejbContainer.getClassloader();
      this.classloader = new WeakReference<ClassLoader>(cl);

      Advisor advisor = this.ejbContainer;
      CacheConfig config = (CacheConfig) advisor.resolveAnnotation(CacheConfig.class);
      MBeanServer server = MBeanServerLocator.locateJBoss();
      String name = config.name();
      if (name == null || name.trim().length() == 0)
         name = CacheConfig.DEFAULT_CLUSTERED_OBJECT_NAME;
      ObjectName cacheON = new ObjectName(name);
View Full Code Here

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

   public void initialize(Container container) throws Exception
   {
      Advisor advisor = (Advisor) container;
      this.pool = container.getPool();
      cacheMap = new CacheMap();
      PersistenceManager pmConfig = (PersistenceManager) advisor.resolveAnnotation(PersistenceManager.class);
      EJBContainer ejbContainer = (EJBContainer)container;
      this.pm = ejbContainer.getDeployment().getPersistenceManagerFactoryRegistry().getPersistenceManagerFactory(
            pmConfig.value()).createPersistenceManager();
      pm.initialize(container);
      CacheConfig config = (CacheConfig) advisor.resolveAnnotation(CacheConfig.class);
View Full Code Here

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

      PersistenceManager pmConfig = (PersistenceManager) advisor.resolveAnnotation(PersistenceManager.class);
      EJBContainer ejbContainer = (EJBContainer)container;
      this.pm = ejbContainer.getDeployment().getPersistenceManagerFactoryRegistry().getPersistenceManagerFactory(
            pmConfig.value()).createPersistenceManager();
      pm.initialize(container);
      CacheConfig config = (CacheConfig) advisor.resolveAnnotation(CacheConfig.class);
      maxSize = config.maxSize();
      sessionTimeout = config.idleTimeoutSeconds();
      removalTimeout = config.removalTimeoutSeconds();
      log = Logger.getLogger(getClass().getName() + "." + container.getEjbName());
      log.debug("Initializing SimpleStatefulCache with maxSize: " +maxSize + " timeout: " +sessionTimeout +
View Full Code Here

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

   public void initialize(EJBContainer container) throws Exception
   {
      this.container = (StatefulContainer) container;
      Advisor advisor = container.getAdvisor();
      cacheMap = new CacheMap();
      PersistenceManager pmConfig = (PersistenceManager) advisor.resolveAnnotation(PersistenceManager.class);
      EJBContainer ejbContainer = (EJBContainer)container;
      String pmConfigValue = pmConfig.value();
      PersistenceManagerFactoryRegistry pmFactoryRegistry = ejbContainer.getDeployment()
            .getPersistenceManagerFactoryRegistry();
      PersistenceManagerFactory pmFactory = pmFactoryRegistry.getPersistenceManagerFactory(pmConfigValue);
View Full Code Here

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

      PersistenceManagerFactoryRegistry pmFactoryRegistry = ejbContainer.getDeployment()
            .getPersistenceManagerFactoryRegistry();
      PersistenceManagerFactory pmFactory = pmFactoryRegistry.getPersistenceManagerFactory(pmConfigValue);
      this.pm = pmFactory.createPersistenceManager();
      pm.initialize(container);
      CacheConfig config = (CacheConfig) advisor.resolveAnnotation(CacheConfig.class);
      maxSize = config.maxSize();
      sessionTimeout = config.idleTimeoutSeconds();
      removalTimeout = config.removalTimeoutSeconds() * 1000;
      SessionBeanEffigy effigy = this.container.getEffigy();
      if(effigy != null)
View Full Code Here

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

         setupMetaData(advisor, c, m, f, classAnnotations, ctorAnnotations, methodAnnotations, fieldAnnotations);
      }
     
      Some some = advisor.resolveTypedAnnotation(Some.class);
      assertNotNull(some);
      some = (Some)advisor.resolveAnnotation(Some.class);
      assertNotNull(some);
      Other other = advisor.resolveTypedAnnotation(Other.class);
      assertNull(other);
      other = (Other)advisor.resolveAnnotation(Other.class);
      assertNull(other);
View Full Code Here

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

      assertNotNull(some);
      some = (Some)advisor.resolveAnnotation(Some.class);
      assertNotNull(some);
      Other other = advisor.resolveTypedAnnotation(Other.class);
      assertNull(other);
      other = (Other)advisor.resolveAnnotation(Other.class);
      assertNull(other);
     
      SomeAnnotation someAnn = advisor.resolveTypedAnnotation(SomeAnnotation.class);
      assertNotNull(someAnn);
      someAnn = (SomeAnnotation)advisor.resolveAnnotation(SomeAnnotation.class);
View Full Code Here

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

      other = (Other)advisor.resolveAnnotation(Other.class);
      assertNull(other);
     
      SomeAnnotation someAnn = advisor.resolveTypedAnnotation(SomeAnnotation.class);
      assertNotNull(someAnn);
      someAnn = (SomeAnnotation)advisor.resolveAnnotation(SomeAnnotation.class);
      assertNotNull(someAnn);
      OtherAnnotation otherAnn = advisor.resolveTypedAnnotation(OtherAnnotation.class);
      assertNull(otherAnn);
      otherAnn = (OtherAnnotation)advisor.resolveAnnotation(OtherAnnotation.class);
      assertNull(otherAnn);
View Full Code Here

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

      assertNotNull(someAnn);
      someAnn = (SomeAnnotation)advisor.resolveAnnotation(SomeAnnotation.class);
      assertNotNull(someAnn);
      OtherAnnotation otherAnn = advisor.resolveTypedAnnotation(OtherAnnotation.class);
      assertNull(otherAnn);
      otherAnn = (OtherAnnotation)advisor.resolveAnnotation(OtherAnnotation.class);
      assertNull(otherAnn);
     
      if (useMetaData)
      {
         SomeMD someMD = advisor.resolveTypedAnnotation(SomeMD.class);
View Full Code Here

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

     
      if (useMetaData)
      {
         SomeMD someMD = advisor.resolveTypedAnnotation(SomeMD.class);
         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);
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.