hi
, Restlet " " . , ( , )
, . , , Restlet ( - ), , , Observer , sth. . , , . Restlet . , ( ?)
, Application Restlet , , , ..
sth.
protected Application initObjLinkage(){
Context cx = this.getContext();
Client cli = cx.getClientDispatcher();
Application app = cli.getApplication() ;
return app;
}
Application ( ), reflection ...
Method cbMethod = app.getClass().getMethod("getFoo", parameterTypes) ;
CallbackIntf getmethodFoo = ( CallbackIntf )cbMethod.invoke( app, arguments );
String str = getmethodFoo()
, observer, -. , , .
... , {no/some} :)
source
share