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)
profile
(object
)
Add a profile created by profileFactory.create()
. Returns true
if a new profile group was added to the registry.
profileRegistry.addResolver(resolver)
resolver
(object
) see the project here for an example of what this object needs to look like
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)
resolver
(object
) see the project here for an example of what this object needs to look like
Removes a resolver from the registry previously added via profileRegistry.addResolver
.