Package org.exoplatform.container.xml

Examples of org.exoplatform.container.xml.ValuesParam


    /**
     * @return the list of enclosed "init" resource bundles
     */
    @SuppressWarnings("unchecked")
    public List<String> getInitResources() {
        ValuesParam vParam = params.getValuesParam("init.resources");
        return vParam == null ? null : vParam.getValues();
    }
View Full Code Here


      ownName = pps.getProperty("node-name");
      participantsCluster = pps.getProperty("other-participants");
      sWaitConfirmation = pps.getProperty("wait-confirmation");

      // initialize repositories
      ValuesParam vp = initParams.getValuesParam("repositories");
      repoNamesList = vp.getValues();
      if (vp == null || vp.getValues().size() == 0)
         throw new RuntimeException("repositories not specified");

      // initialize snapshot params;
      PropertiesParam backuParams = initParams.getPropertiesParam("replication-snapshot-properties");
View Full Code Here

    * @param params the container parameters.
    */
   public TextPlainDocumentReader(InitParams params)
   {

      ValuesParam encoding = (ValuesParam)params.getParameter(DEFAULT_ENCODING);

      if (encoding != null && encoding.getValue() != null && !encoding.getValue().equalsIgnoreCase(""))
      {
         defaultEncoding = encoding.getValue();
      }
      else
      {
         defaultEncoding = null;
      }
View Full Code Here

    * @param params the container parameters.
    */
   public TextPlainDocumentReader(InitParams params)
   {

      ValuesParam encoding = (ValuesParam)params.getParameter(DEFAULT_ENCODING);

      if (encoding != null && encoding.getValue() != null && !encoding.getValue().equalsIgnoreCase(""))
      {
         defaultEncoding = encoding.getValue();
      }
      else
      {
         defaultEncoding = null;
      }
View Full Code Here

      ownName = pps.getProperty("node-name");
      participantsCluster = pps.getProperty("other-participants");
      sWaitConfirmation = pps.getProperty("wait-confirmation");

      // initialize repositories
      ValuesParam vp = initParams.getValuesParam("repositories");
      repoNamesList = vp.getValues();
      if (vp == null || vp.getValues().size() == 0)
         throw new RuntimeException("repositories not specified");

      // initialize snapshot params;
      PropertiesParam backuParams = initParams.getPropertiesParam("replication-snapshot-properties");
View Full Code Here

         ComponentLifecyclePlugin comlp = (ComponentLifecyclePlugin)it.next();
         assertEquals("component-lifecycle-plugin", comlp.getType());
         ManageableComponents mc = comlp.getManageableComponents();
         assertNotNull(mc);
         assertEquals("manageable-components-component-type", mc.getComponentsType().get(0));
         ValuesParam valuesParam = comlp.getInitParams().getValuesParam("component-lifecycle-plugin-values-param-name");
         assertNotNull(valuesParam);
         assertNotNull(valuesParam.getValues());
         assertTrue(valuesParam.getValues().contains("component-lifecycle-plugin-values-param-value1"));
         assertTrue(valuesParam.getValues().contains("component-lifecycle-plugin-values-param-value2"));
         Component c = conf.getComponent("component-key1");
         assertNotNull(c);
         assertEquals("component-type1", c.getType());
         PropertiesParam propertiesParam = c.getInitParams().getPropertiesParam("component-key1-properties-param-name");
         assertNotNull(propertiesParam);
View Full Code Here

   {
      Iterator<ValuesParam> valuesParamIterator = initialParameters.getValuesParamIterator();

      while (valuesParamIterator.hasNext())
      {
         ValuesParam valuesParam = valuesParamIterator.next();

         if (UNMODIFIABLE.equals(valuesParam.getName()))
         {
            unmodifiable.addAll(valuesParam.getValues());
         }

         if (BEFORE_INITIALIZE.equals(valuesParam.getName()))
         {
            beforeInitialize.addAll(valuesParam.getValues());
         }
      }
   }
View Full Code Here

   {

      Iterator<ValuesParam> vparams = params.getValuesParamIterator();
      while (vparams.hasNext())
      {
         ValuesParam nodeTypeParam = vparams.next();
         nodeTypes.put(nodeTypeParam.getName(), nodeTypeParam.getValues());
      }
   }
View Full Code Here

      check(bean.value.equals("value"));
      ValueParam vp = params.getValueParam("value-param");
      check(vp.getValue().equals("value"));
      vp = params.getValueParam("value-param2");
      check(vp.getValue().equals("value"));
      ValuesParam vps = params.getValuesParam("values-param");
      check(vps.getValues().get(0).equals("value1"));
      check(vps.getValues().get(1).equals("value2"));
      check(vps.getValues().get(2).equals("value3"));
      vps = params.getValuesParam("values-param2");
      check(vps.getValues().get(0).equals("value1"));
      check(vps.getValues().get(1).equals("value2"));
      check(vps.getValues().get(2).equals("value3"));
   }
View Full Code Here

    * The default constructor
    * @param p the initial parameters
    */
   public BasicWeldContainerHelper(InitParams p)
   {
      ValuesParam params = p == null ? null : p.getValuesParam(INCLUDE_PARAM_NAME);
      if (params != null && params.getValues().size() > 0)
      {
         includes = new String[params.getValues().size()];
         int i = 0;
         for (String value : params.getValues())
         {
            includes[i++] = value;
         }
      }
      else
      {
         includes = null;
      }
      params = p == null ? null : p.getValuesParam(EXCLUDE_PARAM_NAME);
      if (params != null && params.getValues().size() > 0)
      {
         excludes = new String[params.getValues().size()];
         int i = 0;
         for (String value : params.getValues())
         {
            excludes[i++] = value;
         }
      }
      else
View Full Code Here

TOP

Related Classes of org.exoplatform.container.xml.ValuesParam

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.