Tabnine Logo
BundleHolder
Code IndexAdd Tabnine to your IDE (free)

How to use
BundleHolder
in
org.jboss.weld.environment.osgi.impl.extension.beans

Best Java code snippets using org.jboss.weld.environment.osgi.impl.extension.beans.BundleHolder (Showing top 6 results out of 315)

origin: org.jboss.weld.osgi/weld-osgi-core-extension

@Produces
public BundleContext getBundleContext(BundleHolder holder, InjectionPoint p) {
  logger.trace("Entering OSGiUtilitiesProducer : getBundleContext() "
      + "with parameters {} | {}",
         new Object[] {holder,p});
  logger.debug("Returning the current bundle {} bundle context {}",
         holder.getBundle(),
         holder.getContext());
  return holder.getContext();
}
origin: org.jboss.weld.osgi/weld-osgi-ee-integration

holder.setBundle(injectedContext.getBundle());
holder.setContext(injectedContext);
origin: org.jboss.weld.osgi/weld-osgi-core-extension

if (valid && bundleHolder.getState().equals(BundleState.INVALID)) {
  logger.debug("Bundle {} is now VALID", bundleHolder.getBundle());
  bundleHolder.setState(BundleState.VALID);
  validEvent.fire(new Valid());
} else if (!valid && (bundleHolder.getState().equals(BundleState.VALID) || event == null)) {
  logger.debug("Bundle {} is now INVALID", bundleHolder.getBundle());
  bundleHolder.setState(BundleState.INVALID);
  invalidEvent.fire(new Invalid());
origin: org.jboss.weld.osgi/weld-osgi-core-extension

@Produces
public Bundle getBundle(BundleHolder holder, InjectionPoint p) {
  logger.trace("Entering OSGiUtilitiesProducer : getBundle() "
         + "with parameters {} | {}",
         new Object[] {holder,p});
  logger.debug("Returning the current bundle {}", holder.getBundle());
  return holder.getBundle();
}
origin: org.jboss.weld.osgi/weld-osgi-core-extension

logger.trace("CDI container started");
holder.getInstance().select(BundleHolder.class).get().setBundle(bundle);
holder.getInstance().select(BundleHolder.class).get().setContext(bundle.getBundleContext());
holder.getInstance().select(ContainerObserver.class).get().setContainers(factory().containers());
holder.getInstance().select(ContainerObserver.class).get().setCurrentContainer(holder);
origin: org.jboss.weld.osgi/weld-osgi-core-extension

@Produces
public <T> Registration<T> getRegistrations(BundleHolder bundleHolder,
                      RegistrationHolder holder,
                      InjectionPoint p) {
  logger.trace("Entering OSGiUtilitiesProducer : getRegistrations() "
      + "with parameters {} | {} | {}",
         new Object[] {bundleHolder,holder,p});
  Class<T> contract = ((Class<T>) ((ParameterizedType) p.getType()).getActualTypeArguments()[0]);
  Registration<T> result = new RegistrationImpl<T>(contract,
                           bundleHolder.getContext(),
                           bundleHolder.getBundle(),
                           holder);
  logger.debug("Returning the registrations {}", result);
  return result;
}
org.jboss.weld.environment.osgi.impl.extension.beansBundleHolder

Javadoc

This the reference to the current bundle used by Weld-OSGi. It wraps the OSGi Bundle. It is aware of the new BundleStates for bean bundles. It may be injected anywhere in the bean bundle.

Most used methods

  • setBundle
  • setContext
  • getBundle
    Get the OSGi Bundle object wrapped by this BundleHolder.
  • getContext
  • getState
  • setState

Popular in Java

  • Running tasks concurrently on multiple threads
  • onRequestPermissionsResult (Fragment)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • runOnUiThread (Activity)
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • 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