Skip to main content Link Search Menu Expand Document (external link)

The Profile Registry Interface

The profile registry maintains a list of all profile groups and their associated profiles.

There is only one profile registry and it can always be found at jancy.profileRegistry.

Methods

profileRegistry.addProfile(profile)

Add a profile created by profileFactory.create(). Returns true if a new profile group was added to the registry.

profileRegistry.addResolver(resolver)

Adds a resolver to the registry.

profileRegistry.getProfile(groupName, profileName)

  • groupName (string)
  • profileName (string)

Returns a profile object that matches given groupName and profileName.

profileRegistry.removeResolver(resolver)

Removes a resolver from the registry previously added via profileRegistry.addResolver.