Skip to content

Latest commit

 

History

History
77 lines (41 loc) · 2.06 KB

configuration.md

File metadata and controls

77 lines (41 loc) · 2.06 KB

Configuration is done with configuration atoms. Each atom has a type and value separated by a ->

resource-sink

resource-sink->file_path?name=serviceName

Creates a resource sink object. If a name is provided it will be added to the location at that service name.

templates

template-classpath->com/emergentideas/webhandle/templates/oak

The inclusion of templates that are stored in a jar

template-directory->templates

The inclusion of templates in a directory

static resources

classpath-public-resource->com/emergentideas/webhandle/resources/oak

Serve files from a point in the classpath

public-resource->static_content

Serves files from the static_content directory

Also, there are two configuration parameters for public-resource and classpath-public-resource. cacheTime is the time in seconds for the exipiration time reported in the HTTP Header. By default, the cache time is zero and the client must request the resource (though possibly with etag) again each time it needs it.

showDirectoryContents if set to true will cause any directory to show an inventory listing of its content.

An example would be:

public-resource->static_content?showDirectoryContents=true&cacheTime=3600

This will also allow a default set of files like

public-resource->static-content?directoryDefaultFiles=(?i)index.htm.?

including other configurations

class-path-include->com/emergentideas/webhandle/assumptions/oak/infrastructure.configuration

Includes a configuration on the class path

config-file-include->file1.conf

Includes a file configuration (from the root of the app directory if the path is relative)

adding binary resources

bin->lib/*

Adds a bunch of jars in the lib directory

bin->bin

Adds a tree of classes from the bin directory

configuring beans

classpath-property-wire->com/emergentideas/icandoit/data/db.properties?objectName=dbConfiguration

Finds the db.properties file on the classpath and tries to wire those properties into a bean named dbConfiguration