Hi Evgeny, In this case and for all other Restlet instances, the same instance is reused across requests and even multi-threaded. No worry about performance.
Best regards, Jerome > -----Message d'origine----- > De : news [mailto:[EMAIL PROTECTED] De la part de Evgeny Shepelyuk > Envoyé : mardi 8 mai 2007 04:16 > À : [email protected] > Objet : Restlet lifecycle question > > Hello > Sorry maybe question is obvious but was unable to find clear > answer in > tutorials. > > This code from tutorial > > // Creating a minimal Restlet returning "Hello World" > Restlet restlet = new Restlet() { > @Override > public void handle(Request request, Response response) { > response.setEntity("Hello World!", MediaType.TEXT_PLAIN); > } > }; > > // Create the HTTP server and listen on port 8182 > new Server(Protocol.HTTP, 8182, restlet).start(); > > > The instance of of anonymous class is created per each client > request ? > Or it is the same for all restlet server created ? > > Thnx

