Codota Logo
RegistrationsHolderImpl
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
List l =
  • Codota Iconnew LinkedList()
  • Codota IconCollections.emptyList()
  • Codota Iconnew ArrayList()
  • Smart code suggestions by Codota
}
origin: org.jboss.weld.osgi/weld-osgi-ee-integration

  @PreDestroy
  public void stop() {
    shutdown.fire(new BundleContainerEvents.BundleContainerShutdown(actualContext));
    for (ServiceRegistration reg : registrations.getRegistrations()) {
      try {
        reg.unregister();
      } catch (Throwable t) {
        //t.printStackTrace();
      }
    }
    invalid.fire(new Invalid());
    ext.removeListeners();
  }
}
origin: org.jboss.weld.osgi/weld-osgi-core-extension

@Override
public <T, U extends T> Registration<T> registerService(Class<T> contract,
                            U implementation) {
  ServiceRegistration reg = registry.registerService(contract.getName(),
                            implementation,
                            null);
  holder.addRegistration(reg);
  return new RegistrationImpl<T>(contract, registry, bundle, holder);
}
origin: org.jboss.weld.osgi/weld-osgi-core-extension

@Override
public Registration<T> select(String filter) {
  Filter osgiFilter = null;
  try {
    osgiFilter = FrameworkUtil.createFilter(filter);
  }
  catch(InvalidSyntaxException e) {
    throw new IllegalArgumentException("Invalid LDAP filter : "
                      + e.getMessage());
  }
  RegistrationHolder holder = new RegistrationsHolderImpl();
  for (ServiceRegistration registration : holder.getRegistrations()) {
    if (osgiFilter.match(registration.getReference())) {
      holder.addRegistration(registration);
    }
  }
  return new RegistrationImpl<T>(contract, registry, bundle, holder);
}
origin: org.jboss.weld.osgi/weld-osgi-core-extension

for (ServiceRegistration reg : regs.getRegistrations()) {
  try {
    reg.unregister();
origin: org.jboss.weld.osgi/weld-osgi-core-extension

@Override
public <T> Registration<T> registerService(Class<T> contract,
                      Class<? extends T> implementation) {
  ServiceRegistration reg = registry.registerService(contract.getName(),
                            instances.select(implementation).get(),
                            null);
  holder.addRegistration(reg);
  return new RegistrationImpl<T>(contract, registry, bundle, holder);
}
origin: org.jboss.weld.osgi/weld-osgi-core-extension

Collection<ServiceRegistration> regs = holder.getInstance().select(RegistrationsHolderImpl.class).get().getRegistrations();
BundleContext bundleContext = bundle.getBundleContext();
try {
origin: org.jboss.weld.osgi/weld-osgi-core-extension

instance.select(RegistrationsHolderImpl.class).get().addRegistration(registration);
org.jboss.weld.environment.osgi.impl.extension.beansRegistrationsHolderImpl

Javadoc

Implementation of RegistrationHolder.

Most used methods

  • getRegistrations
  • <init>
  • addRegistration

Popular in Java

  • Making http requests using okhttp
  • setScale (BigDecimal)
  • orElseThrow (Optional)
  • notifyDataSetChanged (ArrayAdapter)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement.A servlet is a small Java program that runs within
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • JTable (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now