org.apache.felix.ipojo.annotations.Bind类的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(4.7k)|赞(0)|评价(0)|浏览(232)

本文整理了Java中org.apache.felix.ipojo.annotations.Bind类的一些代码示例,展示了Bind类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Bind类的具体详情如下:
包路径:org.apache.felix.ipojo.annotations.Bind
类名称:Bind

Bind介绍

暂无

代码示例

代码示例来源:origin: vert-x3/vertx-examples

  1. @Bind(aggregate = true)
  2. public void bindVerticle(Verticle verticle) {
  3. LOGGER.info("Deploying verticle " + verticle);
  4. TcclSwitch.executeWithTCCLSwitch(() -> {
  5. vertx.deployVerticle(verticle, ar -> {
  6. if (ar.succeeded()) {
  7. deploymentIds.put(verticle, ar.result());
  8. } else {
  9. LOGGER.log(Level.SEVERE, "Cannot deploy " + verticle, ar.cause());
  10. }
  11. });
  12. });
  13. }

代码示例来源:origin: info.kwarc.sally4.mhw/mhw-base

  1. @Bind(aggregate=true, optional=true)
  2. public void addPlanetaryClient(IMathHubDocument planetaryClients) {
  3. }

代码示例来源:origin: org.wisdom-framework/router

  1. /**
  2. * Binds a filter.
  3. *
  4. * @param filter the filter
  5. */
  6. @Bind(aggregate = true, optional = true)
  7. public void bindFilter(Filter filter) {
  8. filters.add(filter);
  9. }

代码示例来源:origin: info.kwarc.sally4.mhw/mhw-base

  1. @Bind(aggregate=true, optional=true)
  2. public void removeLMHStore(LMHMultiUserStore multiUserStore) {
  3. lmhStores.remove(multiUserStore);
  4. }

代码示例来源:origin: info.kwarc.sally4.mhw/mhw-base

  1. @Bind(aggregate=true, optional=true)
  2. public void addLMHStore(LMHMultiUserStore multiUserStore) {
  3. lmhStores.add(multiUserStore);
  4. }

代码示例来源:origin: info.kwarc.sally4.mhw/mhw-base

  1. @Bind(aggregate=true, optional=true, filter="(filterThatWillNeverSucceed=1)", id="userNewFilter")
  2. public void onNewDocument(IMathHubDocument mathHubDoc) {
  3. documents.add(mathHubDoc);
  4. }

代码示例来源:origin: info.kwarc.sally4/sally4-docmanager

  1. @Bind(aggregate=true)
  2. public void bindService(HttpService httpSevlet, Dictionary<String, Object> properties) {
  3. Object pid = properties.get("service.pid");
  4. if (pid == null)
  5. return;
  6. if (!"org.ops4j.pax.web".equals(pid)) {
  7. return;
  8. }
  9. port = properties.get(portProperty).toString();
  10. this.httpSevlet = httpSevlet;
  11. }

代码示例来源:origin: info.kwarc.sally4/sally4-docmanager

  1. @Bind(aggregate=true)
  2. void newSallyDoc(SallyClient newDoc) throws UnacceptableConfiguration, MissingHandlerException, ConfigurationException {
  3. addDoc(newDoc);
  4. }
  5. }

代码示例来源:origin: info.kwarc.sally4/mhw-base

  1. @Bind(aggregate=true, optional=true)
  2. public void bindMathHubWorker(IWorker worker) {
  3. if (!started) {
  4. bindRequests.add(worker);
  5. return;
  6. }
  7. assignerModel.addWorker(worker);
  8. }

代码示例来源:origin: org.ow2.kerneos.graniteds-osgi/granite-core

  1. @Bind(aggregate = true, optional = true)
  2. public final void bindSecurity(final GraniteSecurity security) {
  3. synchronized (securityMap) {
  4. securityMap.put(security.getService(), security);
  5. }
  6. }

代码示例来源:origin: org.wisdom-framework/wisdom-jdbc-datasources

  1. @Bind(optional = true, aggregate = true)
  2. public synchronized void bindFactory(DataSourceFactory factory, Map<String, String> properties) {
  3. String driverClassName = properties.get(DataSourceFactory.OSGI_JDBC_DRIVER_CLASS);
  4. drivers.put(driverClassName, factory);
  5. checkPendingDatasource(driverClassName);
  6. }

代码示例来源:origin: org.ow2.kerneos.graniteds-osgi/granite-core

  1. @Bind(aggregate = true, optional = true)
  2. public final void bindDestination(final GraniteDestination destination) {
  3. synchronized (destinationServices) {
  4. destinationServices.put(destination.getId(), destination);
  5. }
  6. }

代码示例来源:origin: org.ow2.kerneos.graniteds-osgi/granite-core

  1. @Bind(aggregate = true, optional = true)
  2. public final void bindFactory(final GraniteFactory factory) {
  3. synchronized (factoryServices) {
  4. factoryServices.put(factory.getId(), factory);
  5. }
  6. }

代码示例来源:origin: org.wisdom-framework/router

  1. /**
  2. * Registers the current router in the dispatcher.
  3. */
  4. @Bind(aggregate = true)
  5. public void bindDispatcher(WebSocketDispatcher dispatcher) {
  6. dispatcher.register(this);
  7. }

代码示例来源:origin: org.wisdom-framework/router

  1. /**
  2. * Binds a new controller.
  3. *
  4. * @param controller the new controller
  5. */
  6. @Bind(aggregate = true)
  7. public synchronized void bindController(Controller controller) {
  8. analyze(controller);
  9. }

代码示例来源:origin: info.kwarc.sally4.mhw/mhw-local-factory

  1. @Bind(aggregate=true, optional=true)
  2. void bindTools(IMathHubTool tool) {
  3. tools.put(tool.getId(), tool);
  4. }

代码示例来源:origin: info.kwarc.sally4.mhw/mhw-mmt

  1. @Bind(filter = "(factory.name=" + MMTImpl.factory_id + ")")
  2. void bind(Factory mmtFactory) {
  3. MMTFactories.put(mmtFactory.getBundleContext().getBundle().getVersion().toString(), mmtFactory);
  4. }

代码示例来源:origin: info.kwarc.sally4/office-base

  1. @Bind(aggregate=true)
  2. void newSallyDoc(SallyClient newDoc) throws UnacceptableConfiguration, MissingHandlerException, ConfigurationException {
  3. addDoc(newDoc);
  4. }

代码示例来源:origin: info.kwarc.sally4.mhw/mhw-local-factory

  1. @Bind(aggregate=true,optional=true)
  2. void bind(IMathHubUser user) {
  3. users.put(user.getUserId(), user);
  4. }

代码示例来源:origin: info.kwarc.sally4.mhw/mhw-base

  1. @Bind(id = "repoMHWIDBindFilter", filter = "(filterThatWillNeverSucceed=1)", aggregate=true, optional=true)
  2. void bindActiveRepository(IMathHubRepository repo) {
  3. log.debug(repo.getRepositoryName()+" was added");
  4. instantiatedRepositories.add(repo.getRepositoryName());
  5. }

相关文章

Bind类方法