org.jboss.as.controller.registry.Resource.isProxy()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(4.9k)|赞(0)|评价(0)|浏览(73)

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

Resource.isProxy介绍

[英]Gets whether operations against this resource will be proxied to a remote process.
[中]获取是否将针对此资源的操作代理给远程进程。

代码示例

代码示例来源:origin: wildfly/wildfly

@Override
public boolean isProxy() {
  return delegate.isProxy();
}

代码示例来源:origin: wildfly/wildfly

/**
 * @return
 * @see org.jboss.as.controller.registry.Resource#isProxy()
 */
public boolean isProxy() {
  return delegate.isProxy();
}

代码示例来源:origin: wildfly/wildfly

@Override
public boolean isProxy() {
  return delegate.isProxy();
}

代码示例来源:origin: wildfly/wildfly

@Override
protected void describe(OrderedChildTypesAttachment orderedChildTypesAttachment, Resource resource, ModelNode addressModel, ModelNode result, ImmutableManagementResourceRegistration registration) {
  if (resource == null || registration.isRemote() || registration.isRuntimeOnly() || resource.isProxy() || resource.isRuntime() || registration.isAlias()) return;
  result.add(createAddOperation(orderedChildTypesAttachment, addressModel, resource, registration.getChildAddresses(PathAddress.EMPTY_ADDRESS)));
  PathAddress address = PathAddress.pathAddress(addressModel);
  for (String type : resource.getChildTypes()) {
    for (Resource.ResourceEntry entry : resource.getChildren(type)) {
      PathElement path = entry.getPathElement();
      ImmutableManagementResourceRegistration childRegistration = Optional.ofNullable(registration.getSubModel(PathAddress.pathAddress(path))).orElse(registration.getSubModel(PathAddress.pathAddress(PathElement.pathElement(path.getKey()))));
      PathAddress childAddress = address.append(path);
      this.describe(orderedChildTypesAttachment, entry, childAddress.toModelNode(), result, childRegistration);
    }
  }
}

代码示例来源:origin: org.wildfly/wildfly-undertow

@Override
public boolean isProxy() {
  return delegate.isProxy();
}

代码示例来源:origin: org.jboss.eap/wildfly-undertow

@Override
public boolean isProxy() {
  return delegate.isProxy();
}

代码示例来源:origin: wildfly/wildfly-core

@Override
public boolean isProxy() {
  return delegate.isProxy();
}

代码示例来源:origin: org.jboss.as/jboss-as-controller

@Override
public boolean isProxy() {
  return delegate.isProxy();
}

代码示例来源:origin: org.wildfly/wildfly-controller

@Override
public boolean isProxy() {
  return delegate.isProxy();
}

代码示例来源:origin: wildfly/wildfly-core

@Override
public boolean isProxy() {
  return delegate.isProxy();
}

代码示例来源:origin: org.wildfly.core/wildfly-controller

@Override
public boolean isProxy() {
  return delegate.isProxy();
}

代码示例来源:origin: org.wildfly.core/wildfly-controller

@Override
  public boolean accepts(PathAddress address, Resource resource) {
    if(resource.isRuntime() || resource.isProxy()) {
      return false;
    }
    return true;
  }
};

代码示例来源:origin: org.jboss.as/jboss-as-controller

@Override
  public boolean accepts(PathAddress address, Resource resource) {
    if(resource.isRuntime() || resource.isProxy()) {
      return false;
    }
    return true;
  }
};

代码示例来源:origin: org.jboss.as/jboss-as-controller

public boolean isProxy() {
  return getDelegate().isProxy();
}

代码示例来源:origin: org.wildfly/wildfly-controller

@Override
  public boolean accepts(PathAddress address, Resource resource) {
    if(resource.isRuntime() || resource.isProxy()) {
      return false;
    }
    return true;
  }
};

代码示例来源:origin: wildfly/wildfly-core

@Override
  public boolean accepts(PathAddress address, Resource resource) {
    if(resource.isRuntime() || resource.isProxy()) {
      return false;
    }
    return true;
  }
};

代码示例来源:origin: wildfly/wildfly-core

@Override
  public void transformResource(ResourceTransformationContext context, PathAddress address, Resource resource) throws OperationFailedException  {
    if (resource.isProxy() || resource.isRuntime()) {
      return;
    }
    final ResourceTransformationContext childContext = context.addTransformedResource(PathAddress.EMPTY_ADDRESS, resource);
    childContext.processChildren(resource);
  }
};

代码示例来源:origin: org.wildfly.core/wildfly-controller

@Override
  public void transformResource(ResourceTransformationContext context, PathAddress address, Resource resource) throws OperationFailedException  {
    if (resource.isProxy() || resource.isRuntime()) {
      return;
    }
    final ResourceTransformationContext childContext = context.addTransformedResource(PathAddress.EMPTY_ADDRESS, resource);
    childContext.processChildren(resource);
  }
};

代码示例来源:origin: org.wildfly/wildfly-controller

@Override
  public void transformResource(ResourceTransformationContext context, PathAddress address, Resource resource) throws OperationFailedException  {
    if (resource.isProxy() || resource.isRuntime()) {
      return;
    }
    final ResourceTransformationContext childContext = context.addTransformedResource(PathAddress.EMPTY_ADDRESS, resource);
    childContext.processChildren(resource);
  }
};

代码示例来源:origin: org.jboss.as/jboss-as-controller

@Override
  public void transformResource(ResourceTransformationContext context, PathAddress address, Resource resource) throws OperationFailedException  {
    if (resource.isProxy() || resource.isRuntime()) {
      return;
    }
    final ResourceTransformationContext childContext = context.addTransformedResource(PathAddress.EMPTY_ADDRESS, resource);
    childContext.processChildren(resource);
  }
};

相关文章