/** * Create an Aries-specific mutable instance of the standard ServiceMetadata interface. * * @param serviceInterfaces the interfaces for the service * * @return a new reflect instance */ public static MutableServiceMetadata create(Class... serviceInterfaces) { MutableServiceMetadata metadata = create(); if (serviceInterfaces != null && serviceInterfaces.length > 0) { for (Class serviceInterface : serviceInterfaces) { metadata.addInterface(serviceInterface.getName()); } } return metadata; }
/** * Create an Aries-specific mutable instance of the standard ServiceMetadata interface. * * @param serviceInterfaces the interfaces for the service * * @return a new reflect instance */ public static MutableServiceMetadata create(String id, Class... serviceInterfaces) { MutableServiceMetadata metadata = create(); metadata.setId(id); if (serviceInterfaces != null && serviceInterfaces.length > 0) { for (Class serviceInterface : serviceInterfaces) { metadata.addInterface(serviceInterface.getName()); } } return metadata; }
service.setId(name); service.setServiceComponent(bean); service.addInterface(KeystoreInstance.class.getName()); return service;
service.setId(name); service.setServiceComponent(bean); service.addInterface(KeystoreInstance.class.getName()); return service;
service.setId(name); service.setServiceComponent(bean); service.addInterface(JaasRealm.class.getName()); service.addServiceProperty(createValue(context, ProxyLoginModule.PROPERTY_MODULE), createValue(context, name)); return service;
service.setId(name); service.setServiceComponent(bean); service.addInterface(JaasRealm.class.getName()); service.addServiceProperty(createValue(context, ProxyLoginModule.PROPERTY_MODULE), createValue(context, name)); return service;
commandService.setActivation(MutableServiceMetadata.ACTIVATION_LAZY); commandService.setId(getName()); commandService.addInterface(Function.class.getName()); commandService.addInterface(CompletableFunction.class.getName()); commandService.setServiceComponent(command); commandService.addServiceProperty(createStringValue(context, "osgi.command.scope"),