org.glassfish.admingui.connector.IntegrationPointInjector Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of payara-micro Show documentation
Show all versions of payara-micro Show documentation
Micro Distribution of the Payara Project for IBM JDK
The newest version!
package org.glassfish.admingui.connector;
import org.jvnet.hk2.annotations.Service;
import org.jvnet.hk2.config.ConfigInjector;
import org.jvnet.hk2.config.Dom;
import org.jvnet.hk2.config.InjectionTarget;
@Service(name = "integration-point", metadata = "@content=optional,@content=datatype:java.lang.String,@content=leaf,@id=required,@id=datatype:java.lang.String,@id=leaf,@parentId=optional,@parentId=datatype:java.lang.String,@parentId=leaf,@priority=optional,@priority=datatype:java.lang.String,@priority=leaf,@type=required,@type=datatype:java.lang.String,@type=leaf,target=org.glassfish.admingui.connector.IntegrationPoint")
@InjectionTarget(IntegrationPoint.class)
public class IntegrationPointInjector
extends ConfigInjector
{
public void inject(Dom dom, IntegrationPoint target) {
attribute_setId(dom, target);
attribute_setType(dom, target);
attribute_setParentId(dom, target);
attribute_setContent(dom, target);
attribute_setPriority(dom, target);
}
public void injectAttribute(Dom dom, String name, IntegrationPoint target) {
if ("id".equals(name)) {
attribute_setId(dom, target);
}
if ("type".equals(name)) {
attribute_setType(dom, target);
}
if ("parentId".equals(name)) {
attribute_setParentId(dom, target);
}
if ("content".equals(name)) {
attribute_setContent(dom, target);
}
if ("priority".equals(name)) {
attribute_setPriority(dom, target);
}
}
public void injectElement(Dom dom, String name, IntegrationPoint target) {
}
public void attribute_setId(Dom dom, IntegrationPoint target) {
String v1 = dom.attribute("id");
target.setId(v1);
}
public void attribute_setType(Dom dom, IntegrationPoint target) {
String v1 = dom.attribute("type");
target.setType(v1);
}
public void attribute_setParentId(Dom dom, IntegrationPoint target) {
String v1 = dom.attribute("parentId");
if (v1 == null) {
return ;
}
target.setParentId(v1);
}
public void attribute_setContent(Dom dom, IntegrationPoint target) {
String v1 = dom.attribute("content");
if (v1 == null) {
return ;
}
target.setContent(v1);
}
public void attribute_setPriority(Dom dom, IntegrationPoint target) {
String v1 = dom.attribute("priority");
if (v1 == null) {
return ;
}
target.setPriority(asInt(v1));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy