org.jvnet.hk2.config.Element类的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(3.7k)|赞(0)|评价(0)|浏览(158)

本文整理了Java中org.jvnet.hk2.config.Element类的一些代码示例,展示了Element类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Element类的具体详情如下:
包路径:org.jvnet.hk2.config.Element
类名称:Element

Element介绍

暂无

代码示例

代码示例来源:origin: javaee/glassfish

@NotNull
@Element
public WebContainerAvailability getWebContainerAvailability();
void setWebContainerAvailability(WebContainerAvailability v);

代码示例来源:origin: javaee/glassfish

private ElementMethodGenerator(Property p, Element e) {
  super("element_", injectElementMethod, p, e.value());
  this.e = e;
}

代码示例来源:origin: javaee/glassfish

private boolean _isKey() {
  Element e = getAnnotation(Element.class);
  if(e!=null && e.key())  return true;
  Attribute a = getAnnotation(Attribute.class);
  return a != null && a.key();
}

代码示例来源:origin: javaee/glassfish

/**
 * Gets the value of the property property.
 * <p/>
 * This accessor method returns a reference to the live list,
 * not a snapshot. Therefore any modification you make to the
 * returned list will be present inside the JAXB object.
 * This is why there is not a <CODE>set</CODE> method for the property property.
 * <p/>
 * <p/>
 * For example, to add a new item, do as follows:
 * <pre>
 *    getProperty().add(newItem);
 * </pre>
 * <p/>
 * <p/>
 * <p/>
 * Objects of the following type(s) are allowed in the list
 * {@link Property }
 * @return the property list
 */
@XmlElement(name="property")
@Element("property")
List<Property> getProperty();
Property addProperty(Property property);

代码示例来源:origin: org.glassfish.main.common/amx-core

public static DescriptorSupport descriptor(final Element e)
{
  final DescriptorSupport d = new DescriptorSupport();
  d.setField(DESC_KIND, Element.class.getName());
  d.setField(DESC_KEY, e.key());
  d.setField(DESC_REQUIRED, e.required());
  d.setField(DESC_REFERENCE, e.reference());
  d.setField(DESC_VARIABLE_EXPANSION, e.variableExpansion());
  return d;
}

代码示例来源:origin: javaee/glassfish

protected boolean isRequired() {
  return e.required();
}

代码示例来源:origin: javaee/glassfish

protected boolean isReference() {
  return e.reference();
}

代码示例来源:origin: javaee/glassfish

@Element
public EjbContainerAvailability getEjbContainerAvailability();

代码示例来源:origin: org.glassfish.main.common/amx-core

public boolean required()
{
  return mElement.required();
}

代码示例来源:origin: eclipse-ee4j/glassfish

protected boolean isReference() {
  return e.reference();
}

代码示例来源:origin: org.glassfish.main.admin/config-api

/**
 * Gets the value of the monitoringService property.
 *
 * @return possible object is
 *         {@link MonitoringService }
 */
@Element()
@NotNull
MonitoringService getMonitoringService();

代码示例来源:origin: javaee/glassfish

@Element("*")
List<GenericContainer> getExtensions();

代码示例来源:origin: javaee/glassfish

protected boolean isAllElementMatch() {
    return e.value().equals("*");
  }
}

代码示例来源:origin: org.glassfish.main.common/amx-core

public boolean key()
{
  return mElement.key();
}

代码示例来源:origin: eclipse-ee4j/glassfish

protected boolean isRequired() {
  return e.required();
}

代码示例来源:origin: org.glassfish.main.admin/config-api

/**
 * Gets the value of the accessLog property.
 *
 * @return possible object is
 *         {@link AccessLog }
 */
@Element
@NotNull            
AccessLog getAccessLog();

代码示例来源:origin: javaee/glassfish

@Element
GenericConfig getGenericConfig();
void setGenericConfig(GenericConfig genericConfig);

代码示例来源:origin: javaee/glassfish

String en = e.value();
if(en.length()>0) {
  prop = elements.get(en);

代码示例来源:origin: eclipse-ee4j/glassfish

private boolean _isKey() {
  Element e = getAnnotation(Element.class);
  if(e!=null && e.key())  return true;
  Attribute a = getAnnotation(Attribute.class);
  return a != null && a.key();
}

代码示例来源:origin: org.glassfish.main.admin/config-api

/**
 * Gets the value of the groupManagementService property.
 *
 * @return possible object is
 *         {@link GroupManagementService }
 * @since glassfish v3.1
 */
@Element //(required=true)
@NotNull
FailureDetection getFailureDetection();

相关文章