001package org.nuxeo.ecm.user.registration.actions;
002
003import org.jboss.seam.ScopeType;
004import org.jboss.seam.annotations.Factory;
005import org.jboss.seam.annotations.Name;
006import org.jboss.seam.annotations.Scope;
007import org.nuxeo.ecm.user.registration.UserRegistrationService;
008import org.nuxeo.runtime.api.Framework;
009
010/**
011 * Simple UserRegistrationService Business Delegate
012 *
013 * @author <a href="mailto:akervern@nuxeo.com">Arnaud Kervern</a>
014 * @since 5.6
015 */
016
017@Name("org.nuxeo.ecm.user.registration.actions.UserRegistrationBusinessDelegate")
018@Scope(ScopeType.APPLICATION)
019public class UserRegistrationBusinessDelegate {
020    @Factory(value = "userRegistrationService", scope = ScopeType.APPLICATION)
021    public UserRegistrationService UserRegistrationServiceFactory() {
022        return Framework.getService(UserRegistrationService.class);
023    }
024}