Package org.gatein.pc.api.info

Examples of org.gatein.pc.api.info.RuntimeOptionInfo


   private Map<String, RuntimeOptionInfo> build(Collection<ContainerRuntimeMetaData> optionsMD)
   {
      Map<String, RuntimeOptionInfo> options = null;
      for (ContainerRuntimeMetaData containerRuntimeMD : optionsMD)
      {
         RuntimeOptionInfo optionInfo = build(containerRuntimeMD);
         if (options == null)
         {
            options = new HashMap<String, RuntimeOptionInfo>();
         }
         options.put(optionInfo.getName(), optionInfo);
      }
      return options;
   }
View Full Code Here


    * @param runtimeOptions
    * @return
    */
   public boolean isRemotable(Map<String, RuntimeOptionInfo> runtimeOptions)
   {
      RuntimeOptionInfo runtimeOptionInfo = runtimeOptions.get(RuntimeOptionInfo.REMOTABLE_RUNTIME_OPTION);

      return runtimeOptionInfo != null && "true".equals(runtimeOptionInfo.getValues().get(0));
   }
View Full Code Here

      serviceDescription = new ServiceDescriptionInfo();
   }

   public boolean isRemotable(Map<String, RuntimeOptionInfo> runtimeOptions)
   {
      RuntimeOptionInfo runtimeOptionInfo = runtimeOptions.get(RuntimeOptionInfo.REMOTABLE_RUNTIME_OPTION);

      return runtimeOptionInfo != null && "true".equals(runtimeOptionInfo.getValues().get(0));
   }
View Full Code Here

   private Map<String, RuntimeOptionInfo> build(Collection<ContainerRuntimeMetaData> optionsMD)
   {
      Map<String, RuntimeOptionInfo> options = null;
      for (ContainerRuntimeMetaData containerRuntimeMD : optionsMD)
      {
         RuntimeOptionInfo optionInfo = build(containerRuntimeMD);
         if (options == null)
         {
            options = new HashMap<String, RuntimeOptionInfo>();
         }
         options.put(optionInfo.getName(), optionInfo);
      }
      return options;
   }
View Full Code Here

   private Map<String, RuntimeOptionInfo> build(Collection<ContainerRuntimeMetaData> optionsMD)
   {
      Map<String, RuntimeOptionInfo> options = null;
      for (ContainerRuntimeMetaData containerRuntimeMD : optionsMD)
      {
         RuntimeOptionInfo optionInfo = build(containerRuntimeMD);
         if (options == null)
         {
            options = new HashMap<String, RuntimeOptionInfo>();
         }
         options.put(optionInfo.getName(), optionInfo);
      }
      return options;
   }
View Full Code Here

      PortletContainer container = (PortletContainer)invocation.getAttribute(ContainerPortletInvoker.PORTLET_CONTAINER);
      ContainerPortletInfo containerInfo = (ContainerPortletInfo)container.getInfo();

      //
      Map<String, RuntimeOptionInfo> options = containerInfo.getRuntimeOptionsInfo();
      RuntimeOptionInfo scopingOption = options.get(RuntimeOptionInfo.JAVAX_PORTLET_ACTION_SCOPED_REQUEST_ATTRIBUTES);

      //
      int maxScope = 0;
      if (scopingOption != null && "true".equals(scopingOption.getValues().get(0)))
      {
         maxScope = 10;

         //
         List<String> values = scopingOption.getValues();
         if (values.size() >= 3 && RuntimeOptionInfo.NUMBER_OF_CACHED_SCOPES.equals(values.get(1)))
         {
            try
            {
               maxScope = Integer.parseInt(values.get(2));
View Full Code Here

   private Map<String, RuntimeOptionInfo> build(Collection<ContainerRuntimeMetaData> optionsMD)
   {
      Map<String, RuntimeOptionInfo> options = null;
      for (ContainerRuntimeMetaData containerRuntimeMD : optionsMD)
      {
         RuntimeOptionInfo optionInfo = build(containerRuntimeMD);
         if (options == null)
         {
            options = new HashMap<String, RuntimeOptionInfo>();
         }
         options.put(optionInfo.getName(), optionInfo);
      }
      return options;
   }
View Full Code Here

   private Map<String, RuntimeOptionInfo> build(Collection<ContainerRuntimeMetaData> optionsMD)
   {
      Map<String, RuntimeOptionInfo> options = null;
      for (ContainerRuntimeMetaData containerRuntimeMD : optionsMD)
      {
         RuntimeOptionInfo optionInfo = build(containerRuntimeMD);
         if (options == null)
         {
            options = new HashMap<String, RuntimeOptionInfo>();
         }
         options.put(optionInfo.getName(), optionInfo);
      }
      return options;
   }
View Full Code Here

      PortletContainer container = (PortletContainer)invocation.getAttribute(ContainerPortletInvoker.PORTLET_CONTAINER);
      ContainerPortletInfo containerInfo = (ContainerPortletInfo)container.getInfo();

      //
      Map<String, RuntimeOptionInfo> options = containerInfo.getRuntimeOptionsInfo();
      RuntimeOptionInfo scopingOption = options.get(RuntimeOptionInfo.JAVAX_PORTLET_ACTION_SCOPED_REQUEST_ATTRIBUTES);

      //
      int maxScope = 0;
      if (scopingOption != null && "true".equals(scopingOption.getValues().get(0)))
      {
         maxScope = 10;

         //
         List<String> values = scopingOption.getValues();
         if (values.size() >= 3 && RuntimeOptionInfo.NUMBER_OF_CACHED_SCOPES.equals(values.get(1)))
         {
            try
            {
               maxScope = Integer.parseInt(values.get(2));
View Full Code Here

TOP

Related Classes of org.gatein.pc.api.info.RuntimeOptionInfo

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.