Examples of CacheInfo


Examples of org.jboss.as.ejb3.cache.CacheInfo

    }

    @Override
    protected CacheInfo fromAnnotation(AnnotationInstance annotationInstance) {
        String value = annotationInstance.value().asString();
        return new CacheInfo(value);
    }
View Full Code Here

Examples of org.jboss.as.ejb3.cache.CacheInfo

    }

    @Override
    protected CacheInfo fromAnnotation(AnnotationInstance annotationInstance, PropertyReplacer propertyReplacer) {
        String value = annotationInstance.value().asString();
        return new CacheInfo(propertyReplacer.replaceProperties(value));
    }
View Full Code Here

Examples of org.jboss.as.ejb3.cache.CacheInfo

                    cacheName = cacheMetaData.getCacheName();
                }
            }
        }
        if (cacheName != null) {
            description.setCache(new CacheInfo(cacheName));
        }
    }
View Full Code Here

Examples of org.jboss.as.ejb3.cache.CacheInfo

            private ServiceName getServiceName(StatefulSessionComponentCreateService service) {
                if (!service.isPassivationCapable()) {
                    return CacheFactoryBuilderService.DEFAULT_PASSIVATION_DISABLED_CACHE_SERVICE_NAME;
                }
                CacheInfo cache = service.getCache();
                return (cache != null) ? CacheFactoryBuilderService.getServiceName(cache.getName()) : CacheFactoryBuilderService.DEFAULT_CACHE_SERVICE_NAME;
            }
        });
        @SuppressWarnings("rawtypes")
        final InjectedValue<CacheFactory> factory = new InjectedValue<>();
        configuration.getStartDependencies().add(new DependencyConfigurator<ComponentStartService>() {
View Full Code Here

Examples of org.jboss.as.ejb3.cache.CacheInfo

                    cacheName = cacheMetaData.getCacheName();
                }
            }
        }
        if (cacheName != null) {
            description.setCache(new CacheInfo(cacheName));
        }
    }
View Full Code Here

Examples of org.jboss.as.ejb3.cache.CacheInfo

            public void configureDependency(ServiceBuilder<?> builder, StatefulSessionComponentCreateService service) throws DeploymentUnitProcessingException {
                builder.addDependency(this.getServiceName(service), CacheFactory.class, service.getCacheFactoryInjector());
            }

            private ServiceName getServiceName(StatefulSessionComponentCreateService service) {
                CacheInfo cache = service.getCache();
                if (cache != null) {
                    return CacheFactoryService.getServiceName(cache.getName());
                }
                return (service.getClustering() == null) ? CacheFactoryService.DEFAULT_SFSB_CACHE_SERVICE_NAME : CacheFactoryService.DEFAULT_CLUSTERED_SFSB_CACHE_SERVICE_NAME;
            }
        });
        return new StatefulSessionComponentCreateService(configuration, this.ejbJarConfiguration);
View Full Code Here

Examples of org.jboss.portal.portlet.info.CacheInfo

            cacheControl.getETag());
      }
      else
      {
         PortletInfo info = preq.container.getInfo();
         CacheInfo cacheInfo = info.getCache();
         cc = new org.jboss.portal.portlet.cache.CacheControl(cacheInfo.getExpirationSecs(), CacheScope.PRIVATE, null);
      }

      //
      if (cacheControl != null && cacheControl.useCachedContent())
      {
View Full Code Here

Examples of org.jboss.portal.portlet.info.CacheInfo

   public CacheControl getCacheControl()
   {
      if (cacheControl == null)
      {
         PortletInfo info = preq.container.getInfo();
         CacheInfo cacheInfo = info.getCache();
         cacheControl = new CacheControlImpl(cacheInfo.getExpirationSecs(), CacheScope.PRIVATE);
      }
      return cacheControl;
   }
View Full Code Here

Examples of org.jboss.portal.portlet.info.CacheInfo

            cacheControl.getETag());
      }
      else
      {
         PortletInfo info = preq.container.getInfo();
         CacheInfo cacheInfo = info.getCache();
         cc = new org.jboss.portal.portlet.cache.CacheControl(cacheInfo.getExpirationSecs(), CacheScope.PRIVATE, null);
      }

      //
      if (cacheControl != null && cacheControl.useCachedContent())
      {
View Full Code Here

Examples of org.jboss.portal.portlet.info.CacheInfo

   public CacheControl getCacheControl()
   {
      if (cacheControl == null)
      {
         PortletInfo info = preq.container.getInfo();
         CacheInfo cacheInfo = info.getCache();
         cacheControl = new CacheControlImpl(cacheInfo.getExpirationSecs(), CacheScope.PRIVATE);
      }
      return cacheControl;
   }
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.