Tabnine Logo
BeanDeploymentArchive.getId
Code IndexAdd Tabnine to your IDE (free)

How to use
getId
method
in
org.jboss.weld.bootstrap.spi.BeanDeploymentArchive

Best Java code snippets using org.jboss.weld.bootstrap.spi.BeanDeploymentArchive.getId (Showing top 20 results out of 315)

origin: HotswapProjects/HotswapAgent

/**
 * Gets the Bean deployment ID - bdaId.
 *
 * @return the bdaId
 */
public String getBdaId() {
  return deploymentArchive.getId();
}
origin: wildfly/wildfly

public WeldBootstrapService(final WeldDeployment deployment, final Environment environment, final String deploymentName,
              final Consumer<WeldBootstrapService> weldBootstrapServiceConsumer,
              final Supplier<ExecutorServices> executorServicesSupplier,
              final Supplier<ExecutorService> serverExecutorSupplier,
              final Supplier<SecurityServices> securityServicesSupplier,
              final Supplier<TransactionServices> weldTransactionServicesSupplier
) {
  this.deployment = deployment;
  this.environment = environment;
  this.deploymentName = deploymentName;
  this.weldBootstrapServiceConsumer = weldBootstrapServiceConsumer;
  this.executorServicesSupplier = executorServicesSupplier;
  this.serverExecutorSupplier = serverExecutorSupplier;
  this.securityServicesSupplier = securityServicesSupplier;
  this.weldTransactionServicesSupplier = weldTransactionServicesSupplier;
  this.bootstrap = new WeldBootstrap();
  Map<String, BeanDeploymentArchive> bdas = new HashMap<String, BeanDeploymentArchive>();
  BeanDeploymentArchiveImpl rootBeanDeploymentArchive = null;
  for (BeanDeploymentArchive archive : deployment.getBeanDeploymentArchives()) {
    bdas.put(archive.getId(), archive);
    if (archive instanceof BeanDeploymentArchiveImpl) {
      BeanDeploymentArchiveImpl bda = (BeanDeploymentArchiveImpl) archive;
      if (bda.isRoot()) {
        rootBeanDeploymentArchive = bda;
      }
    }
  }
  this.rootBeanDeploymentArchive = rootBeanDeploymentArchive;
  this.beanDeploymentArchives = Collections.unmodifiableMap(bdas);
}
origin: HotswapProjects/HotswapAgent

LOGGER.debug("BeanClassRefreshAgent registerArchive bdaId='{}' archivePath='{}'.", beanArchive.getId(), archivePath);
LOGGER.warning("Unable to watch BeanDeploymentArchive with id={}", beanArchive.getId());
origin: org.glassfish.main.web/weld-integration

private void addBdaToDeploymentBdas( BeanDeploymentArchive bda ) {
  if ( ! beanDeploymentArchives.contains( bda ) ) {
    beanDeploymentArchives.add(bda);
    idToBeanDeploymentArchive.put(bda.getId(), bda);
  }
}
origin: weld/core

@Override
public String toString() {
  StringBuilder builder = new StringBuilder();
  builder.append("BeanDeployment ");
  builder.append("[beanDeploymentArchiveId=");
  builder.append(beanDeploymentArchive.getId());
  if (!beanDeploymentArchive.getId().equals(beanManager.getId())) {
    builder.append(", beanManagerId=");
    builder.append(beanManager.getId());
  }
  builder.append("]");
  return builder.toString();
}
origin: weld/core

@Override
public String toString() {
  StringBuilder builder = new StringBuilder();
  builder.append("BeanDeployment ");
  builder.append("[beanDeploymentArchiveId=");
  builder.append(beanDeploymentArchive.getId());
  if (!beanDeploymentArchive.getId().equals(beanManager.getId())) {
    builder.append(", beanManagerId=");
    builder.append(beanManager.getId());
  }
  builder.append("]");
  return builder.toString();
}
origin: org.jboss.weld/weld-spi

@Override
public String getId() {
  return delegate().getId();
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

@Override
public String toString() {
  StringBuilder builder = new StringBuilder();
  builder.append("BeanDeployment ");
  builder.append("[beanDeploymentArchiveId=");
  builder.append(beanDeploymentArchive.getId());
  if (!beanDeploymentArchive.getId().equals(beanManager.getId())) {
    builder.append(", beanManagerId=");
    builder.append(beanManager.getId());
  }
  builder.append("]");
  return builder.toString();
}
origin: org.jboss.weld.se/weld-se-shaded

@Override
public String toString() {
  StringBuilder builder = new StringBuilder();
  builder.append("BeanDeployment ");
  builder.append("[beanDeploymentArchiveId=");
  builder.append(beanDeploymentArchive.getId());
  if (!beanDeploymentArchive.getId().equals(beanManager.getId())) {
    builder.append(", beanManagerId=");
    builder.append(beanManager.getId());
  }
  builder.append("]");
  return builder.toString();
}
origin: weld/core

boolean isNonuniqueIdentifierDetected() {
  Set<String> beanDeploymentArchiveIds = new HashSet<>();
  Set<String> beanManagerIds = new HashSet<>();
  for (Entry<BeanDeploymentArchive, BeanDeployment> entry : beanDeployments.entrySet()) {
    if (!beanDeploymentArchiveIds.add(entry.getKey().getId()) || !beanManagerIds.add(entry.getValue().getBeanManager().getId())) {
      return true;
    }
  }
  return false;
}
origin: org.jboss.weld.se/weld-se

boolean isNonuniqueIdentifierDetected() {
  Set<String> beanDeploymentArchiveIds = new HashSet<>();
  Set<String> beanManagerIds = new HashSet<>();
  for (Entry<BeanDeploymentArchive, BeanDeployment> entry : beanDeployments.entrySet()) {
    if (!beanDeploymentArchiveIds.add(entry.getKey().getId()) || !beanManagerIds.add(entry.getValue().getBeanManager().getId())) {
      return true;
    }
  }
  return false;
}
origin: weld/core

boolean isNonuniqueIdentifierDetected() {
  Set<String> beanDeploymentArchiveIds = new HashSet<>();
  Set<String> beanManagerIds = new HashSet<>();
  for (Entry<BeanDeploymentArchive, BeanDeployment> entry : beanDeployments.entrySet()) {
    if (!beanDeploymentArchiveIds.add(entry.getKey().getId()) || !beanManagerIds.add(entry.getValue().getBeanManager().getId())) {
      return true;
    }
  }
  return false;
}
origin: weld/core

boolean isNonuniqueIdentifierDetected() {
  Set<String> beanDeploymentArchiveIds = new HashSet<>();
  Set<String> beanManagerIds = new HashSet<>();
  for (Entry<BeanDeploymentArchive, BeanDeployment> entry : beanDeployments.entrySet()) {
    if (!beanDeploymentArchiveIds.add(entry.getKey().getId()) || !beanManagerIds.add(entry.getValue().getBeanManager().getId())) {
      return true;
    }
  }
  return false;
}
origin: org.jboss.weld.se/weld-se-shaded

boolean isNonuniqueIdentifierDetected() {
  Set<String> beanDeploymentArchiveIds = new HashSet<>();
  Set<String> beanManagerIds = new HashSet<>();
  for (Entry<BeanDeploymentArchive, BeanDeployment> entry : beanDeployments.entrySet()) {
    if (!beanDeploymentArchiveIds.add(entry.getKey().getId()) || !beanManagerIds.add(entry.getValue().getBeanManager().getId())) {
      return true;
    }
  }
  return false;
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

boolean isNonuniqueIdentifierDetected() {
  Set<String> beanDeploymentArchiveIds = new HashSet<>();
  Set<String> beanManagerIds = new HashSet<>();
  for (Entry<BeanDeploymentArchive, BeanDeployment> entry : beanDeployments.entrySet()) {
    if (!beanDeploymentArchiveIds.add(entry.getKey().getId()) || !beanManagerIds.add(entry.getValue().getBeanManager().getId())) {
      return true;
    }
  }
  return false;
}
origin: weld/core

public Object getObjectInstance(Object obj, Name name, Context nameCtx, Hashtable<?, ?> environment) throws Exception {
  if (Container.available(contextId)) {
    for (Entry<BeanDeploymentArchive, BeanManagerImpl> entry : Container.instance(contextId).beanDeploymentArchives().entrySet()) {
      BeanDeploymentArchive bda = entry.getKey();
      if (bda.getId().equals(FLAT_BEAN_DEPLOYMENT_ID) || bda.getId().contains(WEB_INF_CLASSES_FILE_PATH) || bda.getId().contains(WEB_INF_CLASSES)) {
        return entry.getValue();
      }
    }
    throw BeanManagerLogger.LOG.cannotLocateBeanManager();
  } else {
    throw BeanManagerLogger.LOG.cannotLocateBeanManager();
  }
}
origin: org.jboss.jbossas/weld-int-deployer

  public BeanDeploymentArchive getBeanDeploymentArchive(BootstrapBean bootstrap, DeploymentUnit deploymentUnit)
  {
   for (BeanDeploymentArchive beanDeploymentArchive: bootstrap.getDeployment().getBeanDeploymentArchives())
   {
     if (beanDeploymentArchive.getId().equals("flat"))
     {
      return beanDeploymentArchive;
     }
   }
   return null;
  }
}
origin: org.jboss.as/jboss-as-weld

public WeldBootstrapService(WeldDeployment deployment, Environment environment, final String deploymentName) {
  this.deployment = deployment;
  this.environment = environment;
  this.deploymentName = deploymentName;
  this.bootstrap = new WeldBootstrap();
  Map<String, BeanDeploymentArchive> bdas = new HashMap<String, BeanDeploymentArchive>();
  for (BeanDeploymentArchive archive : deployment.getBeanDeploymentArchives()) {
    bdas.put(archive.getId(), archive);
  }
  bdas.put(deployment.getAdditionalBeanDeploymentArchive().getId(), deployment.getAdditionalBeanDeploymentArchive());
  this.beanDeploymentArchives = Collections.unmodifiableMap(bdas);
}
origin: org.jboss.jbossas/weld-int-deployer

  public BeanDeploymentArchive getBeanDeploymentArchive(BootstrapBean bootstrap, DeploymentUnit deploymentUnit)
  {
   for (BeanDeploymentArchive beanDeploymentArchive: bootstrap.getDeployment().getBeanDeploymentArchives())
   {
     String id = IdFactory.getIdFromClassLoader(deploymentUnit.getClassLoader());
     if (beanDeploymentArchive.getId().equals(id))
     {
      return beanDeploymentArchive;
     }
   }
   return null;
  }
}
origin: weld/core

private <E extends Extension> EnhancedAnnotatedType<E> getEnhancedAnnotatedType(ClassTransformer classTransformer, Metadata<E> extension,
    BeanDeployment beanDeployment) {
  Class<? extends Extension> clazz = extension.getValue().getClass();
  try {
    return cast(classTransformer.getEnhancedAnnotatedType(clazz, beanDeployment.getBeanDeploymentArchive().getId()));
  } catch (ResourceLoadingException e) {
    String missingDependency = Formats.getNameOfMissingClassLoaderDependency(e);
    BootstrapLogger.LOG.ignoringExtensionClassDueToLoadingError(clazz.getName(), missingDependency);
    BootstrapLogger.LOG.catchingDebug(e);
    missingDependenciesRegistry.registerClassWithMissingDependency(clazz.getName(), missingDependency);
    return null;
  }
}
org.jboss.weld.bootstrap.spiBeanDeploymentArchivegetId

Javadoc

Get a string which uniquely identifies the BeanDeploymentArchive within the Deployment. The identifier must be consistent between multiple occurrences of this deployment.

Popular methods of BeanDeploymentArchive

  • getServices
    Get the Bean Deployment Archive scoped services
  • getBeanClasses
    Gets all classes in the bean deployment archive. For an explicit bean archive this method returns a
  • getBeansXml
    Get any deployment descriptors in the bean deployment archive. The container will return a a merged
  • getBeanDeploymentArchives
    Get the bean deployment archives which are accessible to this bean deployment archive and adjacent t
  • getEjbs
    Get all the EJBs in the deployment archive
  • getKnownClasses
    If possible, return all the classes found in the archive. For explicit bean archive the result of th
  • getLoadedBeanClasses
    Get all pre-loaded classes for the bean deployment archive. Weld checks if there is an overlap of FQ

Popular in Java

  • Reactive rest calls using spring rest template
  • getApplicationContext (Context)
  • setContentView (Activity)
  • getExternalFilesDir (Context)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Top plugins for WebStorm
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