+
+ override addMountedRpcImplementation(QName rpcType, RpcImplementation implementation) {
+ throw new UnsupportedOperationException("TODO: auto-generated method stub")
+ }
+
+ override addRoutedRpcImplementation(QName rpcType, RpcImplementation implementation) {
+ throw new UnsupportedOperationException("TODO: auto-generated method stub")
+ }
+
+ override getSupportedRpcs() {
+ broker.getSupportedRpcs();
+ }
+
+ override addRpcRegistrationListener(RpcRegistrationListener listener) {
+ broker.addRpcRegistrationListener(listener);
+ }
+}
+
+class RpcRegistrationImpl extends AbstractObjectRegistration<RpcImplementation> implements RpcRegistration {
+
+ @Property
+ val QName type
+
+ private var ProviderContextImpl context
+
+ new(QName type, RpcImplementation instance, ProviderContextImpl ctx) {
+ super(instance)
+ _type = type
+ context = ctx
+ }
+
+ override protected removeRegistration() {
+ context.removeRpcImplementation(this)
+ context = null
+ }