congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
org.jboss.as.controller.capability.registry
Code IndexAdd Tabnine to your IDE (free)

How to use org.jboss.as.controller.capability.registry

Best Java code snippets using org.jboss.as.controller.capability.registry (Showing top 20 results out of 315)

origin: org.wildfly.core/wildfly-controller

  @Override
  protected CapabilityScope createIncludedContext(String name) {
    return new ProfileChildCapabilityScope(name);
  }
}
origin: org.wildfly.core/wildfly-controller

  @Override
  public int compareTo(CapabilityRegistration o) {
    return id.compareTo(o.id);
  }
}
origin: org.wildfly.core/wildfly-subsystem-test-framework

/**
 * Simple utility method to register a
 * {@link org.jboss.as.controller.capability.RuntimeCapability RuntimeCapability<?>} for each of the given
 * capability. They will be registered against {@link CapabilityScope#GLOBAL} and with the root resource and no
 * specific attribute as their {@link org.jboss.as.controller.capability.registry.RegistrationPoint}.
 *
 * @param capabilityRegistry registry to use
 * @param capabilities the capabilities.
 */
public static void registerCapabilities(RuntimeCapabilityRegistry capabilityRegistry, RuntimeCapability<?>... capabilities) {
  for (final RuntimeCapability<?> capability : capabilities) {
    capabilityRegistry.registerCapability(new RuntimeCapabilityRegistration(capability, CapabilityScope.GLOBAL,
        new RegistrationPoint(PathAddress.EMPTY_ADDRESS, null)));
  }
}
origin: org.wildfly.core/wildfly-controller

private RuntimeCapabilityRegistration createCapabilityRegistration(RuntimeCapability capability, Step step, String attribute) {
  CapabilityScope context = createCapabilityContext(step.address);
  RegistrationPoint rp = new RegistrationPoint(step.address, attribute);
  return new RuntimeCapabilityRegistration(capability, context, rp);
}
origin: org.wildfly.core/wildfly-controller

private CapabilityRegistration<?> getCapability(CapabilityId capabilityId) {
  CapabilityRegistration<?> capReg = this.capabilityRegistry.getCapability(capabilityId);
  if (capReg == null) {
    for (CapabilityRegistration<?> reg : this.capabilityRegistry.getPossibleCapabilities()) {
      if (reg.getCapabilityId().getName().equals(capabilityId.getName())) {
        capReg = reg;
        break;
      }
    }
  }
  return capReg;
}
origin: org.wildfly.core/wildfly-controller

private RuntimeRequirementRegistration createRequirementRegistration(String required, String dependent,
                                   boolean runtimeOnly, Step step, String attribute) {
  CapabilityScope context = createCapabilityContext(step.address);
  RegistrationPoint rp = new RegistrationPoint(step.address, attribute);
  return new RuntimeRequirementRegistration(required, dependent, context, rp, runtimeOnly);
}
origin: org.wildfly.core/wildfly-controller

  @Override
  public int compareTo(CapabilityId o) {
    if (equals(o)) {
      return 0;
    }
    int result = scope.getName().compareTo(o.scope.getName());
    return result != 0 ? result : name.compareTo(o.name);
  }
}
origin: org.wildfly.core/wildfly-controller

  @Override
  protected CapabilityScope createIncludedContext(String name) {
    return new SocketBindingGroupChildScope(name);
  }
}
origin: org.wildfly.core/wildfly-controller

/**
 * Gets the scope in which the capability is registered.
 *
 * @return the capability scope. Will not return {@code null}
 */
public CapabilityScope getCapabilityScope() {
  return id.getScope();
}
origin: org.wildfly.core/wildfly-controller

private void copy(ResolutionContextImpl source) {
  super.copy(source);
  rootResource = source.rootResource;
  resolutionComplete = source.resolutionComplete;
}
origin: org.wildfly.core/wildfly-controller

  /**
   * Construct a new simple attachment key.
   *
   * @param valueClass the value class
   * @param <T>        the attachment type
   *
   * @return the new instance
   */
  @SuppressWarnings("unchecked")
  public static <T> AttachmentKey<T> create(final Class<? super T> valueClass) {
    return new AttachmentKey(valueClass);
  }
}
origin: org.wildfly.core/wildfly-controller

/**
 * Creates a new requirement registration.
 *
 * @param requiredName      the name of the required capability
 * @param dependentName     the name of the capability that requires {@code requiredName}
 * @param dependentContext  context in which the dependent capability exists
 * @param registrationPoint point in the configuration model that triggered the requirement
 */
protected RequirementRegistration(String requiredName, String dependentName, CapabilityScope dependentContext,
                 RegistrationPoint registrationPoint) {
  this(requiredName, dependentName, dependentContext);
  putRegistrationPoint(registrationPoint);
}
origin: org.wildfly.core/wildfly-controller

@Override
public int hashCode() {
  return id.hashCode();
}
origin: wildfly/wildfly-core

/**
 * Simple utility method to register a
 * {@link org.jboss.as.controller.capability.RuntimeCapability RuntimeCapability<?>} for each of the given
 * capability. They will be registered against {@link CapabilityScope#GLOBAL} and with the root resource and no
 * specific attribute as their {@link org.jboss.as.controller.capability.registry.RegistrationPoint}.
 *
 * @param capabilityRegistry registry to use
 * @param capabilities the capabilities.
 */
public static void registerCapabilities(RuntimeCapabilityRegistry capabilityRegistry, RuntimeCapability<?>... capabilities) {
  for (final RuntimeCapability<?> capability : capabilities) {
    capabilityRegistry.registerCapability(new RuntimeCapabilityRegistration(capability, CapabilityScope.GLOBAL,
        new RegistrationPoint(PathAddress.EMPTY_ADDRESS, null)));
  }
}
origin: wildfly/wildfly-core

private CapabilityRegistration<?> getCapability(CapabilityId capabilityId) {
  CapabilityRegistration<?> capReg = this.capabilityRegistry.getCapability(capabilityId);
  if (capReg == null) {
    for (CapabilityRegistration<?> reg : this.capabilityRegistry.getPossibleCapabilities()) {
      if (reg.getCapabilityId().getName().equals(capabilityId.getName())) {
        capReg = reg;
        break;
      }
    }
  }
  return capReg;
}
origin: wildfly/wildfly-core

  @Override
  public int compareTo(CapabilityId o) {
    if (equals(o)) {
      return 0;
    }
    int result = scope.getName().compareTo(o.scope.getName());
    return result != 0 ? result : name.compareTo(o.name);
  }
}
origin: wildfly/wildfly-core

  @Override
  protected CapabilityScope createIncludedContext(String name) {
    return new ProfileChildCapabilityScope(name);
  }
}
origin: wildfly/wildfly-core

  @Override
  public int compareTo(CapabilityRegistration o) {
    return id.compareTo(o.id);
  }
}
origin: wildfly/wildfly-core

  @Override
  protected CapabilityScope createIncludedContext(String name) {
    return new SocketBindingGroupChildScope(name);
  }
}
origin: wildfly/wildfly-core

/**
 * Gets the scope in which the capability is registered.
 *
 * @return the capability scope. Will not return {@code null}
 */
public CapabilityScope getCapabilityScope() {
  return id.getScope();
}
org.jboss.as.controller.capability.registry

Most used classes

  • RegistrationPoint
    Encapsulates the point in the model that triggered the registration of a capability or requirement.
  • RuntimeCapabilityRegistration
    Registration information for a org.jboss.as.controller.capability.RuntimeCapability. As a runtime ca
  • RuntimeCapabilityRegistry
    Registry of org.jboss.as.controller.capability.RuntimeCapability available in the runtime.
  • CapabilityScope$Factory
    Factory for creating a CapabilityScope
  • CapabilityId
    Unique identifier for a capability, encapsulating its name and the scope in which it exists.
  • CapabilityScope,
  • ImmutableCapabilityRegistry,
  • CapabilityResolutionContext$AttachmentKey,
  • CapabilityResolutionContext,
  • HostCapabilityScope,
  • IncludingResourceCapabilityScope,
  • ProfileChildCapabilityScope,
  • RequirementRegistration,
  • RuntimeRequirementRegistration,
  • SocketBindingGroupChildScope
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now