org.apache.cayenne.configuration.server

## Class ServerModule

- java.lang.Object
- - org.apache.cayenne.configuration.server.ServerModule

- All Implemented Interfaces:
    Module

      public class ServerModule
      extends Object
      implements Module

  A DI module containing all Cayenne server runtime configuration.
  Since:
    3.1

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected String[]` | `configurationLocations`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ServerModule(String... configurationLocations)` Creates a ServerModule with at least one configuration location.

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `configure(Binder binder)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### configurationLocations

          protected String[] configurationLocations

  - ### Constructor Detail

    - #### ServerModule

          public ServerModule(String... configurationLocations)

      Creates a ServerModule with at least one configuration location. For multi-module projects additional locations can be specified as well.

  - ### Method Detail

    - #### configure

          public void configure(Binder binder)

      Specified by:
        `configure` in interface `Module`

Copyright © 2001–2014 Apache Cayenne. All rights reserved.