Examples of ModuleIdentifier


Examples of org.jboss.modules.ModuleIdentifier

        modules.add(module);
        notifyObservers(new ChangeEvent(ChangeType.MODULE, false, module.getIdentifier().toString()));
    }

    public OSGiModule removeModule(String id) {
        ModuleIdentifier identifier = ModuleIdentifier.fromString(id);
        synchronized (modules) {
            for (Iterator<OSGiModule> it = modules.iterator(); it.hasNext(); ) {
                OSGiModule module = it.next();
                if (module.getIdentifier().equals(identifier)) {
                    it.remove();
                    notifyObservers(new ChangeEvent(ChangeType.MODULE, true, identifier.toString()));
                    return module;
                }
            }
            return null;
        }
View Full Code Here

Examples of org.vertx.java.platform.impl.ModuleIdentifier

   * @return
   *   Indicates whether the name is a module name.
   */
  public static boolean isModuleName(String moduleName) {
    try {
      new ModuleIdentifier(moduleName);
    } catch (IllegalArgumentException e) {
      return false;
    }
    return true;
  }
View Full Code Here

Examples of org.vertx.java.platform.impl.ModuleIdentifier

  @JsonSetter("module")
  public ModuleConfig setModule(String moduleName) {
    Args.checkNotNull(moduleName, "module name cannot be null");
    // Instantiate a module identifier to force it to validate the module name.
    // If the module name is invalid then an IllegalArgumentException will be thrown.
    new ModuleIdentifier(moduleName);
    this.module = moduleName;
    return this;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.