congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
CapabilityId.getName
Code IndexAdd Tabnine to your IDE (free)

How to use
getName
method
in
org.jboss.as.controller.capability.registry.CapabilityId

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

origin: org.wildfly.core/wildfly-controller

public String getDependentName() {
  return dependentId.getName();
}
origin: org.wildfly.core/wildfly-controller

public String getCapabilityName() {
  return id.getName();
}
origin: wildfly/wildfly-core

public String getDependentName() {
  return dependentId.getName();
}
origin: wildfly/wildfly-core

public String getCapabilityName() {
  return id.getName();
}
origin: org.wildfly.core/wildfly-controller

private Step findCapabilityRemovalStep(CapabilityId missingRequirement, boolean ignoreContext, CapabilityResolutionContext resolutionContext) {
  Step result = removedCapabilities.get(missingRequirement);
  if (result == null && !ignoreContext) {
    String missingName = missingRequirement.getName();
    for (Map.Entry<CapabilityId, Step> entry : removedCapabilities.entrySet()) {
      CapabilityId removedId = entry.getKey();
      if (missingName.equals(removedId.getName())
          && removedId.getScope().canSatisfyRequirement(missingRequirement.getName(), missingRequirement.getScope(), resolutionContext)) {
        result = entry.getValue();
        break;
      }
    }
  }
  return result;
}
origin: wildfly/wildfly-core

private Step findCapabilityRemovalStep(CapabilityId missingRequirement, boolean ignoreContext, CapabilityResolutionContext resolutionContext) {
  Step result = removedCapabilities.get(missingRequirement);
  if (result == null && !ignoreContext) {
    String missingName = missingRequirement.getName();
    for (Map.Entry<CapabilityId, Step> entry : removedCapabilities.entrySet()) {
      CapabilityId removedId = entry.getKey();
      if (missingName.equals(removedId.getName())
          && removedId.getScope().canSatisfyRequirement(missingRequirement.getName(), missingRequirement.getScope(), resolutionContext)) {
        result = entry.getValue();
        break;
      }
    }
  }
  return result;
}
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: 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: org.wildfly.core/wildfly-controller

readLock.lock();
try {
  final CapabilityId capId = capabilityId.getScope() == CapabilityScope.GLOBAL ? capabilityId : new CapabilityId(capabilityId.getName(), CapabilityScope.GLOBAL); //possible registry is only in global scope
  CapabilityRegistration<?> reg =  possibleCapabilities.get(capId);
  if (reg != null) {
      if (registration.getCapability().isDynamicallyNamed()
        && registration.getCapabilityScope().equals(capId.getScope())
        && capId.getName().startsWith(registration.getCapabilityName())) {
        Set<RegistrationPoint> registrationPoints = registration.getRegistrationPoints();
        for (RegistrationPoint registrationPoint : registrationPoints) {
origin: wildfly/wildfly-core

readLock.lock();
try {
  final CapabilityId capId = capabilityId.getScope() == CapabilityScope.GLOBAL ? capabilityId : new CapabilityId(capabilityId.getName(), CapabilityScope.GLOBAL); //possible registry is only in global scope
  CapabilityRegistration<?> reg =  possibleCapabilities.get(capId);
  if (reg != null) {
      if (registration.getCapability().isDynamicallyNamed()
        && registration.getCapabilityScope().equals(capId.getScope())
        && capId.getName().startsWith(registration.getCapabilityName())) {
        Set<RegistrationPoint> registrationPoints = registration.getRegistrationPoints();
        for (RegistrationPoint registrationPoint : registrationPoints) {
origin: org.wildfly.core/wildfly-controller

/**
 * This must be called with the write lock held.
 * @param requirement the requirement
 */
private void registerRequirement(RuntimeRequirementRegistration requirement) {
  assert writeLock.isHeldByCurrentThread();
  CapabilityId dependentId = requirement.getDependentId();
  if (!capabilities.containsKey(dependentId)) {
    throw ControllerLogger.MGMT_OP_LOGGER.unknownCapabilityInContext(dependentId.getName(),
        dependentId.getScope().getName());
  }
  Map<CapabilityId, Map<String, RuntimeRequirementRegistration>> requirementMap =
      requirement.isRuntimeOnly() ? runtimeOnlyRequirements : requirements;
  Map<String, RuntimeRequirementRegistration> dependents = requirementMap.get(dependentId);
  if (dependents == null) {
    dependents = new HashMap<>();
    requirementMap.put(dependentId, dependents);
  }
  RuntimeRequirementRegistration existing = dependents.get(requirement.getRequiredName());
  if (existing == null) {
    dependents.put(requirement.getRequiredName(), requirement);
  } else {
    existing.addRegistrationPoint(requirement.getOldestRegistrationPoint());
  }
  modified = true;
}
origin: wildfly/wildfly-core

/**
 * This must be called with the write lock held.
 * @param requirement the requirement
 */
private void registerRequirement(RuntimeRequirementRegistration requirement) {
  assert writeLock.isHeldByCurrentThread();
  CapabilityId dependentId = requirement.getDependentId();
  if (!capabilities.containsKey(dependentId)) {
    throw ControllerLogger.MGMT_OP_LOGGER.unknownCapabilityInContext(dependentId.getName(),
        dependentId.getScope().getName());
  }
  Map<CapabilityId, Map<String, RuntimeRequirementRegistration>> requirementMap =
      requirement.isRuntimeOnly() ? runtimeOnlyRequirements : requirements;
  Map<String, RuntimeRequirementRegistration> dependents = requirementMap.get(dependentId);
  if (dependents == null) {
    dependents = new HashMap<>();
    requirementMap.put(dependentId, dependents);
  }
  RuntimeRequirementRegistration existing = dependents.get(requirement.getRequiredName());
  if (existing == null) {
    dependents.put(requirement.getRequiredName(), requirement);
  } else {
    existing.addRegistrationPoint(requirement.getOldestRegistrationPoint());
  }
  modified = true;
}
origin: org.wildfly.core/wildfly-controller

String dependentName = dependentId.getName();
CapabilityScope dependentContext = dependentId.getScope();
Set<CapabilityScope> consistentSet = consistentSets == null ? null : consistentSets.get(dependentContext);
origin: wildfly/wildfly-core

String dependentName = dependentId.getName();
CapabilityScope dependentContext = dependentId.getScope();
Set<CapabilityScope> consistentSet = consistentSets == null ? null : consistentSets.get(dependentContext);
origin: org.wildfly.core/wildfly-controller

boolean checkIncorporating = false;
if (incorporatingFull != null) {
  checkIncorporating = incorporatingFull.contains(entry.getKey().getName());
  String name = entry.getKey().getName();
  int lastDot = name.lastIndexOf('.');
  if (lastDot > 0) {
origin: wildfly/wildfly-core

boolean checkIncorporating = false;
if (incorporatingFull != null) {
  checkIncorporating = incorporatingFull.contains(entry.getKey().getName());
  String name = entry.getKey().getName();
  int lastDot = name.lastIndexOf('.');
  if (lastDot > 0) {
origin: org.wildfly.core/wildfly-controller

    || !currentRegistration.getCapability().isAllowMultipleRegistrations()
    || !currentRegistration.addRegistrationPoint(rp)) {
  throw ControllerLogger.MGMT_OP_LOGGER.capabilityAlreadyRegisteredInContext(capabilityId.getName(),
        rp, capabilityId.getScope().getName(), currentRegistration.getRegistrationPoints());
registerRequirement(new RuntimeRequirementRegistration(req, capabilityId.getName(),
    capabilityId.getScope(), rp));
origin: wildfly/wildfly-core

    || !currentRegistration.getCapability().isAllowMultipleRegistrations()
    || !currentRegistration.addRegistrationPoint(rp)) {
  throw ControllerLogger.MGMT_OP_LOGGER.capabilityAlreadyRegisteredInContext(capabilityId.getName(),
        rp, capabilityId.getScope().getName(), currentRegistration.getRegistrationPoints());
registerRequirement(new RuntimeRequirementRegistration(req, capabilityId.getName(),
    capabilityId.getScope(), rp));
origin: org.wildfly.core/wildfly-controller

throw ControllerLogger.MGMT_OP_LOGGER.capabilityAlreadyRegisteredInContext(capabilityId.getName(),
    capabilityId.getScope().getName());
origin: wildfly/wildfly-core

throw ControllerLogger.MGMT_OP_LOGGER.capabilityAlreadyRegisteredInContext(capabilityId.getName(),
    capabilityId.getScope().getName());
org.jboss.as.controller.capability.registryCapabilityIdgetName

Javadoc

Gets the name of the capability. Must be unique within the given scope, so providers of capabilities should use a distinct namespace as part of the name. The org.wildfly namespace and any child namespaces are reserved for use by the WildFly project or its component projects itself.

Popular methods of CapabilityId

  • <init>
  • compareTo
  • equals
  • getScope
    Gets the scope in which the capability exists. A single management process may handle multiple scope
  • hashCode

Popular in Java

  • Start an intent from android
  • requestLocationUpdates (LocationManager)
  • getExternalFilesDir (Context)
  • getApplicationContext (Context)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top Sublime Text plugins
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