SystemPropertyBag
Code IndexAdd Codota to your IDE (free)

Best code snippets using com.sun.enterprise.config.serverbeans.SystemPropertyBag(Showing top 15 results out of 315)

origin: javaee/glassfish

private static String getTXLogDir(SystemPropertyBag bag) {
  for (SystemProperty prop : bag.getSystemProperty()) {
    String name = prop.getName();
    if (name.equals("TX-LOG-DIR")) {
      return prop.getValue();
    }
  }
  return null;
}
origin: org.glassfish.main.admin/config-api

private static void removeSystemPropertyForTokens(List<ConfigCustomizationToken> tokens, SystemPropertyBag bag) throws TransactionFailure {
  for (ConfigCustomizationToken token : tokens) {
    if (bag.containsProperty(token.getName())) {
      bag.getSystemProperty().remove(bag.getSystemProperty(token.getName()));
    }
  }
}
origin: org.glassfish.main.admin/config-api

public String getPropertyValue(ConfigCustomizationToken token, ConfigBeanProxy finalConfigBean) {
  if (finalConfigBean != null) {
    ConfigBeanProxy parent = finalConfigBean.getParent();
    while (!(parent instanceof SystemPropertyBag)) {
      parent = parent.getParent();
      if (parent == null) return null;
    }
    if (((SystemPropertyBag) parent).getSystemProperty(token.getName()) != null) {
      return ((SystemPropertyBag) parent).getSystemProperty(token.getName()).getValue();
    }
    return null;
  } else return token.getValue();
}
origin: org.glassfish.main.admin/config-api

  private void createSystemProperty(SystemPropertyBag spb, String portName, int portVal) throws TransactionFailure, PropertyVetoException {
    if (spb.getSystemProperty(portName) == null) {
      SystemProperty newSysProp = spb.createChild(SystemProperty.class);
      newSysProp.setName(portName);
      newSysProp.setValue(PREFIX + portVal);
      spb.getSystemProperty().add(newSysProp);
    }
  }
}
origin: javaee/glassfish

  public Object run(SystemPropertyBag param) throws PropertyVetoException, TransactionFailure {
    param.getSystemProperty().remove(param.getSystemProperty(propName));
    return param;
  }
}, spb);
origin: org.glassfish.admin/config-api

  public static boolean containsProperty(SystemPropertyBag me, String name) {
    return me.getSystemProperty(name) != null;    
  }
}
origin: fish.payara.extras/payara-embedded-all

public void addSystemPropertyForToken(List<ConfigCustomizationToken> tokens, SystemPropertyBag bag)
    throws TransactionFailure, PropertyVetoException {
  for (ConfigCustomizationToken token : tokens) {
    if (!bag.containsProperty(token.getName())) {
      SystemProperty prop = bag.createChild(SystemProperty.class);
      prop.setName(token.getName());
      prop.setDescription(token.getDescription());
      prop.setValue(token.getValue());
      bag.getSystemProperty().add(prop);
    }
  }
}
origin: org.glassfish.main.admin/config-api

public static SystemProperty getSystemProperty(final SystemPropertyBag me, final String name) {
  for (final SystemProperty prop : me.getSystemProperty()) {
    if (prop.getName().equals(name)) {
      return prop;
    }
  }
  return null;
}
origin: org.glassfish.main.core/kernel

  public Object run(SystemPropertyBag param) throws PropertyVetoException, TransactionFailure {
    param.getSystemProperty().remove(param.getSystemProperty(propName));
    return param;
  }
}, spb);
origin: fish.payara.extras/payara-embedded-all

public static SystemProperty getSystemProperty(final SystemPropertyBag me, final String name) {
  for (final SystemProperty prop : me.getSystemProperty()) {
    if (prop.getName().equals(name)) {
      return prop;
    }
  }
  return null;
}
origin: org.glassfish.main.admin/config-api

public void addSystemPropertyForToken(List<ConfigCustomizationToken> tokens, SystemPropertyBag bag)
    throws TransactionFailure, PropertyVetoException {
  for (ConfigCustomizationToken token : tokens) {
    if (!bag.containsProperty(token.getName())) {
      SystemProperty prop = bag.createChild(SystemProperty.class);
      prop.setName(token.getName());
      prop.setDescription(token.getDescription());
      prop.setValue(token.getValue());
      bag.getSystemProperty().add(prop);
    }
  }
}
origin: org.glassfish.admin/config-api

public static SystemProperty getSystemProperty(final SystemPropertyBag me, final String name) {
  for (final SystemProperty prop : me.getSystemProperty()) {
    if (prop.getName().equals(name)) {
      return prop;
    }
  }
  return null;
}
origin: org.glassfish.admin/config-api

  private void createSystemProperty(SystemPropertyBag spb, String portName, int portVal) throws TransactionFailure, PropertyVetoException {
    if (spb.getSystemProperty(portName) == null) {
      SystemProperty newSysProp = spb.createChild(SystemProperty.class);
      newSysProp.setName(portName);
      newSysProp.setValue(PREFIX + portVal);
      spb.getSystemProperty().add(newSysProp);
    }
  }
}
origin: fish.payara.extras/payara-embedded-all

private static String getTXLogDir(SystemPropertyBag bag) {
  for (SystemProperty prop : bag.getSystemProperty()) {
    String name = prop.getName();
    if (name.equals("TX-LOG-DIR")) {
      return prop.getValue();
    }
  }
  return null;
}
origin: fish.payara.extras/payara-embedded-all

  public Object run(SystemPropertyBag param) throws PropertyVetoException, TransactionFailure {
    param.getSystemProperty().remove(param.getSystemProperty(propName));
    return param;
  }
}, spb);
com.sun.enterprise.config.serverbeansSystemPropertyBag

Javadoc

Base interface for those configuration objects that has nested <system-property> elements.

Important: document legal properties using PropertiesDesc, one PropertyDesc for each legal system-property.

Most used methods

  • getSystemProperty
  • createChild
  • containsProperty

Popular classes and methods

  • getExternalFilesDir (Context)
  • putExtra (Intent)
  • PrintStream (java.io)
    Wraps an existing OutputStream and provides convenience methods for writing common data types in a h
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • JOptionPane (javax.swing)

For IntelliJ IDEA,
Android Studio or Eclipse

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)