|
24 | 24 | * installed on the server using {@link com.marklogic.client.admin.ResourceExtensionsManager}. |
25 | 25 | * Initialize a ResourceManager object by passing it to the |
26 | 26 | * {@link com.marklogic.client.DatabaseClient}.init() method. |
27 | | - * |
| 27 | + * |
28 | 28 | * <p>To expose the services provided by a resource service extension to |
29 | 29 | * applications, implement a subclass of ResourceManager. In your subclass, use |
30 | 30 | * the methods of a {@link ResourceServices} object to call the Resource Services |
31 | 31 | * on the server.</p> |
32 | | - * |
| 32 | + * |
33 | 33 | * <p>Obtain a {@link ResourceServices} object by calling the protected |
34 | 34 | * <code>getServices</code> method of the ResourceManager. This method |
35 | 35 | * has the following signature:</p> |
36 | | - * |
| 36 | + * |
37 | 37 | * <p><code>{@link ResourceServices} getServices()</code></p> |
38 | 38 | */ |
39 | 39 | abstract public class ResourceManager |
40 | | - extends ResourceManagerImplementation |
| 40 | + extends ResourceManagerImplementation |
41 | 41 | { |
42 | | - protected ResourceManager() { |
43 | | - super(); |
44 | | - } |
45 | | - /** |
46 | | - * Returns the name of the resource. |
47 | | - * @return the name of the resource |
48 | | - */ |
49 | | - public String getName() { |
50 | | - ResourceServices services = getServices(); |
51 | | - return (services != null) ? services.getResourceName() : null; |
52 | | - } |
| 42 | + protected ResourceManager() { |
| 43 | + super(); |
| 44 | + } |
| 45 | + /** |
| 46 | + * Returns the name of the resource. |
| 47 | + * @return the name of the resource |
| 48 | + */ |
| 49 | + public String getName() { |
| 50 | + ResourceServices services = getServices(); |
| 51 | + return (services != null) ? services.getResourceName() : null; |
| 52 | + } |
53 | 53 |
|
54 | | - /** |
55 | | - * Starts debugging client requests. You can suspend and resume debugging output |
56 | | - * using the methods of the logger. |
57 | | - * |
58 | | - * @param logger the logger that receives debugging output |
59 | | - */ |
60 | | - public void startLogging(RequestLogger logger) { |
61 | | - ResourceServices services = getServices(); |
62 | | - if (services != null) |
63 | | - services.startLogging(logger); |
64 | | - } |
65 | | - /** |
66 | | - * Stops debugging client requests. |
67 | | - */ |
68 | | - public void stopLogging() { |
69 | | - ResourceServices services = getServices(); |
70 | | - if (services != null) |
71 | | - services.stopLogging(); |
72 | | - } |
| 54 | + /** |
| 55 | + * Starts debugging client requests. You can suspend and resume debugging output |
| 56 | + * using the methods of the logger. |
| 57 | + * |
| 58 | + * @param logger the logger that receives debugging output |
| 59 | + */ |
| 60 | + public void startLogging(RequestLogger logger) { |
| 61 | + ResourceServices services = getServices(); |
| 62 | + if (services != null) |
| 63 | + services.startLogging(logger); |
| 64 | + } |
| 65 | + /** |
| 66 | + * Stops debugging client requests. |
| 67 | + */ |
| 68 | + public void stopLogging() { |
| 69 | + ResourceServices services = getServices(); |
| 70 | + if (services != null) |
| 71 | + services.stopLogging(); |
| 72 | + } |
73 | 73 | } |
0 commit comments