01: // ResourceBroker.java
02: // $Id: ResourceBroker.java,v 1.19 2000/08/16 21:37:34 ylafon Exp $
03: // (c) COPYRIGHT MIT and INRIA, 1997.
04: // Please first read the full copyright statement in file COPYRIGHT.html
05:
06: package org.w3c.jigsaw.admin;
07:
08: import java.util.Hashtable;
09:
10: import org.w3c.jigsaw.daemon.ServerHandlerManager;
11:
12: import org.w3c.tools.resources.FramedResource;
13:
14: /**
15: * The server side resource broker.
16: */
17:
18: public class ResourceBroker extends FramedResource {
19:
20: public String getIdentifier() {
21: return "ResourceBroker";
22: }
23:
24: /**
25: * A real funny way to create resources..
26: * @param shm The server handler manager instance to administer.
27: * @param server The AdminServer instance.
28: * @param writer The encoder for the Admin protocol.
29: */
30:
31: public ResourceBroker(ServerHandlerManager shm, AdminServer admin,
32: AdminWriter writer) {
33: super ();
34: Hashtable defs = new Hashtable(3);
35: defs.put("identifier", "broker-frame");
36: registerFrame(new BrokerFrame(shm, admin, writer), defs);
37: }
38:
39: }
|