Package com.powsybl.afs
Interface ServiceExtension<U>
-
public interface ServiceExtension<U>
Registers a new implementation for service of type <U>, to be retrieved withAppData.findService(java.lang.Class<U>, boolean)
.A service is identified by its interface type and by a "remote" boolean. Therefore you may only have one local and one remote implementation of the same service registered with your AFS.
- Author:
- Geoffroy Jamgotchian
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ServiceExtension.ServiceKey<U>
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description U
createService(ServiceCreationContext context)
Creates the service instance.ServiceExtension.ServiceKey<U>
getServiceKey()
Key identifying the service in AFS.
-
-
-
Method Detail
-
getServiceKey
ServiceExtension.ServiceKey<U> getServiceKey()
Key identifying the service in AFS.
-
createService
U createService(ServiceCreationContext context)
Creates the service instance.
-
-