Home Manual Reference Source
public class | source

MetadataProcessor

Reads resource Metadata using read-resource-description operations and stores it into the {@link MetadataRegistry}. If you're sure the metadata is present you can use the MetadataRegistry instead.

Method Summary

Public Methods
public

lookup(template: AddressTemplate | String, callback: function(metadata: Metadata))

Reads the metadata for the template, stores it in the registry and passes it to the callback.

Public Methods

public lookup(template: AddressTemplate | String, callback: function(metadata: Metadata)) source

Reads the metadata for the template, stores it in the registry and passes it to the callback. If the metadata is already in the registry it's passed directly to the callback.

Params:

NameTypeAttributeDescription
template AddressTemplate | String

The address template to lookup.

callback function(metadata: Metadata)

The callback which receives the metadata.