Deprecation of ExtensionKey #22208
This commit is contained in:
parent
8f9b4f203a
commit
cf6d5a4e8a
7 changed files with 78 additions and 14 deletions
|
|
@ -33,9 +33,24 @@ public class JavaExtension extends JUnitSuite {
|
|||
}
|
||||
}
|
||||
|
||||
static class OtherExtensionId extends AbstractExtensionId<OtherExtension> implements ExtensionIdProvider {
|
||||
|
||||
public final static OtherExtensionId OtherExtensionProvider = new OtherExtensionId();
|
||||
|
||||
@Override
|
||||
public ExtensionId<OtherExtension> lookup() {
|
||||
return OtherExtensionId.OtherExtensionProvider;
|
||||
}
|
||||
|
||||
@Override
|
||||
public OtherExtension createExtension(ExtendedActorSystem system) {
|
||||
return new OtherExtension(system);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
static class OtherExtension implements Extension {
|
||||
static final ExtensionKey<OtherExtension> key = new ExtensionKey<OtherExtension>(OtherExtension.class) {
|
||||
};
|
||||
static final ExtensionId<OtherExtension> key = OtherExtensionId.OtherExtensionProvider;
|
||||
|
||||
public final ExtendedActorSystem system;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue