本文整理了Java中org.apache.felix.ipojo.annotations.Bind
类的一些代码示例,展示了Bind
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Bind
类的具体详情如下:
包路径:org.apache.felix.ipojo.annotations.Bind
类名称:Bind
暂无
代码示例来源:origin: vert-x3/vertx-examples
@Bind(aggregate = true)
public void bindVerticle(Verticle verticle) {
LOGGER.info("Deploying verticle " + verticle);
TcclSwitch.executeWithTCCLSwitch(() -> {
vertx.deployVerticle(verticle, ar -> {
if (ar.succeeded()) {
deploymentIds.put(verticle, ar.result());
} else {
LOGGER.log(Level.SEVERE, "Cannot deploy " + verticle, ar.cause());
}
});
});
}
代码示例来源:origin: info.kwarc.sally4.mhw/mhw-base
@Bind(aggregate=true, optional=true)
public void addPlanetaryClient(IMathHubDocument planetaryClients) {
}
代码示例来源:origin: org.wisdom-framework/router
/**
* Binds a filter.
*
* @param filter the filter
*/
@Bind(aggregate = true, optional = true)
public void bindFilter(Filter filter) {
filters.add(filter);
}
代码示例来源:origin: info.kwarc.sally4.mhw/mhw-base
@Bind(aggregate=true, optional=true)
public void removeLMHStore(LMHMultiUserStore multiUserStore) {
lmhStores.remove(multiUserStore);
}
代码示例来源:origin: info.kwarc.sally4.mhw/mhw-base
@Bind(aggregate=true, optional=true)
public void addLMHStore(LMHMultiUserStore multiUserStore) {
lmhStores.add(multiUserStore);
}
代码示例来源:origin: info.kwarc.sally4.mhw/mhw-base
@Bind(aggregate=true, optional=true, filter="(filterThatWillNeverSucceed=1)", id="userNewFilter")
public void onNewDocument(IMathHubDocument mathHubDoc) {
documents.add(mathHubDoc);
}
代码示例来源:origin: info.kwarc.sally4/sally4-docmanager
@Bind(aggregate=true)
public void bindService(HttpService httpSevlet, Dictionary<String, Object> properties) {
Object pid = properties.get("service.pid");
if (pid == null)
return;
if (!"org.ops4j.pax.web".equals(pid)) {
return;
}
port = properties.get(portProperty).toString();
this.httpSevlet = httpSevlet;
}
代码示例来源:origin: info.kwarc.sally4/sally4-docmanager
@Bind(aggregate=true)
void newSallyDoc(SallyClient newDoc) throws UnacceptableConfiguration, MissingHandlerException, ConfigurationException {
addDoc(newDoc);
}
}
代码示例来源:origin: info.kwarc.sally4/mhw-base
@Bind(aggregate=true, optional=true)
public void bindMathHubWorker(IWorker worker) {
if (!started) {
bindRequests.add(worker);
return;
}
assignerModel.addWorker(worker);
}
代码示例来源:origin: org.ow2.kerneos.graniteds-osgi/granite-core
@Bind(aggregate = true, optional = true)
public final void bindSecurity(final GraniteSecurity security) {
synchronized (securityMap) {
securityMap.put(security.getService(), security);
}
}
代码示例来源:origin: org.wisdom-framework/wisdom-jdbc-datasources
@Bind(optional = true, aggregate = true)
public synchronized void bindFactory(DataSourceFactory factory, Map<String, String> properties) {
String driverClassName = properties.get(DataSourceFactory.OSGI_JDBC_DRIVER_CLASS);
drivers.put(driverClassName, factory);
checkPendingDatasource(driverClassName);
}
代码示例来源:origin: org.ow2.kerneos.graniteds-osgi/granite-core
@Bind(aggregate = true, optional = true)
public final void bindDestination(final GraniteDestination destination) {
synchronized (destinationServices) {
destinationServices.put(destination.getId(), destination);
}
}
代码示例来源:origin: org.ow2.kerneos.graniteds-osgi/granite-core
@Bind(aggregate = true, optional = true)
public final void bindFactory(final GraniteFactory factory) {
synchronized (factoryServices) {
factoryServices.put(factory.getId(), factory);
}
}
代码示例来源:origin: org.wisdom-framework/router
/**
* Registers the current router in the dispatcher.
*/
@Bind(aggregate = true)
public void bindDispatcher(WebSocketDispatcher dispatcher) {
dispatcher.register(this);
}
代码示例来源:origin: org.wisdom-framework/router
/**
* Binds a new controller.
*
* @param controller the new controller
*/
@Bind(aggregate = true)
public synchronized void bindController(Controller controller) {
analyze(controller);
}
代码示例来源:origin: info.kwarc.sally4.mhw/mhw-local-factory
@Bind(aggregate=true, optional=true)
void bindTools(IMathHubTool tool) {
tools.put(tool.getId(), tool);
}
代码示例来源:origin: info.kwarc.sally4.mhw/mhw-mmt
@Bind(filter = "(factory.name=" + MMTImpl.factory_id + ")")
void bind(Factory mmtFactory) {
MMTFactories.put(mmtFactory.getBundleContext().getBundle().getVersion().toString(), mmtFactory);
}
代码示例来源:origin: info.kwarc.sally4/office-base
@Bind(aggregate=true)
void newSallyDoc(SallyClient newDoc) throws UnacceptableConfiguration, MissingHandlerException, ConfigurationException {
addDoc(newDoc);
}
代码示例来源:origin: info.kwarc.sally4.mhw/mhw-local-factory
@Bind(aggregate=true,optional=true)
void bind(IMathHubUser user) {
users.put(user.getUserId(), user);
}
代码示例来源:origin: info.kwarc.sally4.mhw/mhw-base
@Bind(id = "repoMHWIDBindFilter", filter = "(filterThatWillNeverSucceed=1)", aggregate=true, optional=true)
void bindActiveRepository(IMathHubRepository repo) {
log.debug(repo.getRepositoryName()+" was added");
instantiatedRepositories.add(repo.getRepositoryName());
}
内容来源于网络,如有侵权,请联系作者删除!