Package jadex.bridge.service.component
Interface IExternalProvidedServicesFeature
-
- All Known Subinterfaces:
IBDIAgent
,IExternalAccess
,IInternalAccess
,IProvidedServicesFeature
- All Known Implementing Classes:
ComponentPlanBDI
,HelloWorldBDI
,HelloWorldPlan2
,IndexChangeBDI
,InterfaceInjectionBDI
,PlanMethodInjectionBDI
,PlanReasonInjectionBDI
,ProvidedServicesComponentFeature
,SayHelloBDI
public interface IExternalProvidedServicesFeature
Component feature for provided services.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description IFuture<java.lang.Void>
addService(java.lang.String name, java.lang.Class<?> type, java.lang.Object service)
Add a service to the container.IFuture<java.lang.Void>
addService(java.lang.String name, java.lang.Class<?> type, java.lang.Object service, PublishInfo pi, ServiceScope scope)
Add a service to the platform.IFuture<java.lang.Void>
addService(java.lang.String name, java.lang.Class<?> type, java.lang.Object service, java.lang.String proxytype)
Add a service to the platform.IFuture<java.lang.Void>
removeService(IServiceIdentifier sid)
Removes a service from the container (shutdowns also the service if the container is running).IFuture<java.lang.Void>
setTags(IServiceIdentifier sid, java.lang.String... tags)
Sets the tags of a service.
-
-
-
Method Detail
-
addService
IFuture<java.lang.Void> addService(java.lang.String name, java.lang.Class<?> type, java.lang.Object service)
Add a service to the container. The service is started, if the container is already running.- Parameters:
service
- The service.info
- The provided service info.- Returns:
- A future that is done when the service has completed starting.
-
addService
IFuture<java.lang.Void> addService(java.lang.String name, java.lang.Class<?> type, java.lang.Object service, java.lang.String proxytype)
Add a service to the platform. If under the same name and type a service was contained, the old one is removed and shutdowned.- Parameters:
type
- The public service interface.service
- The service.type
- The proxy type (@see{BasicServiceInvocationHandler}).
-
addService
IFuture<java.lang.Void> addService(java.lang.String name, java.lang.Class<?> type, java.lang.Object service, PublishInfo pi, ServiceScope scope)
Add a service to the platform. If under the same name and type a service was contained, the old one is removed and shutdowned.- Parameters:
type
- The public service interface.service
- The service.scope
- The service scope.
-
setTags
IFuture<java.lang.Void> setTags(IServiceIdentifier sid, java.lang.String... tags)
Sets the tags of a service.- Parameters:
sid
- The Service identifier.tags
- The tags.- Returns:
- New service identifier.
-
removeService
IFuture<java.lang.Void> removeService(IServiceIdentifier sid)
Removes a service from the container (shutdowns also the service if the container is running).- Parameters:
service
- The service identifier.- Returns:
- A future that is done when the service has completed its shutdown.
-
-