本文整理汇总了Java中play.data.FormFactory.form方法的典型用法代码示例。如果您正苦于以下问题:Java FormFactory.form方法的具体用法?Java FormFactory.form怎么用?Java FormFactory.form使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类play.data.FormFactory
的用法示例。
在下文中一共展示了FormFactory.form方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: MyStupidBasicAuthProvider
import play.data.FormFactory; //导入方法依赖的package包/类
@Inject
public MyStupidBasicAuthProvider(final PlayAuthenticate auth, final UserProvider userProvider,
final FormFactory formFactory,
final ApplicationLifecycle lifecycle) {
super(auth, lifecycle);
this.userProvider = userProvider;
this.LOGIN_FORM = formFactory.form(MyUsernamePasswordAuthProvider.MyLogin.class);
}
示例2: PostController
import play.data.FormFactory; //导入方法依赖的package包/类
@Inject
public PostController(GroupManager groupManager,
PostManager postManager,
PostBookmarkManager postBookmarkManager,
AccountManager accountManager,
Configuration configuration,
FormFactory formFactory,
NotificationService notificationService,
MessagesApi messagesApi) {
this.groupManager = groupManager;
this.postManager = postManager;
this.postBookmarkManager = postBookmarkManager;
this.accountManager = accountManager;
this.configuration = configuration;
this.formFactory = formFactory;
this.notificationService = notificationService;
this.messagesApi = messagesApi;
this.postForm = formFactory.form(Post.class);
}
示例3: Application
import play.data.FormFactory; //导入方法依赖的package包/类
@Inject
public Application(ElasticsearchService elasticsearchService,
ElasticsearchResponse elasticsearchResponse,
GroupManager groupManager,
PostManager postManager,
AccountManager accountManager,
Configuration configuration,
FormFactory formFactory,
MessagesApi messagesApi) {
this.elasticsearchService = elasticsearchService;
this.elasticsearchResponse = elasticsearchResponse;
this.groupManager = groupManager;
this. postManager = postManager;
this.accountManager = accountManager;
this.configuration = configuration;
this.messagesApi = messagesApi;
this.formFactory = formFactory;
this.postForm = formFactory.form(Post.class);
this.limit = configuration.getInt("htwplus.post.limit");
}
示例4: AdminController
import play.data.FormFactory; //导入方法依赖的package包/类
@Inject
public AdminController(ElasticsearchService elasticsearchService,
MediaManager mediaManager,
GroupManager groupManager,
PostManager postManager,
AccountManager accountManager,
FolderManager folderManager,
FormFactory formFactory,
MessagesApi messagesApi) {
this.elasticsearchService = elasticsearchService;
this.mediaManager = mediaManager;
this.groupManager = groupManager;
this.postManager = postManager;
this.accountManager = accountManager;
this.folderManager = folderManager;
this.messagesApi = messagesApi;
this.formFactory = formFactory;
this.accountForm = formFactory.form(Account.class);
this.postForm = formFactory.form(Post.class);
}
示例5: MyUsernamePasswordAuthProvider
import play.data.FormFactory; //导入方法依赖的package包/类
@Inject
public MyUsernamePasswordAuthProvider(final PlayAuthenticate auth, final FormFactory formFactory,
final ApplicationLifecycle lifecycle, MailerFactory mailerFactory) {
super(auth, lifecycle, mailerFactory);
this.SIGNUP_FORM = formFactory.form(MySignup.class);
this.LOGIN_FORM = formFactory.form(MyLogin.class);
}
示例6: Account
import play.data.FormFactory; //导入方法依赖的package包/类
@Inject
public Account(final PlayAuthenticate auth, final UserProvider userProvider,
final MyUsernamePasswordAuthProvider myUsrPaswProvider,
final FormFactory formFactory, final MessagesApi msg) {
this.auth = auth;
this.userProvider = userProvider;
this.myUsrPaswProvider = myUsrPaswProvider;
this.ACCEPT_FORM = formFactory.form(Accept.class);
this.PASSWORD_CHANGE_FORM = formFactory.form(Account.PasswordChange.class);
this.msg = msg;
}
示例7: Signup
import play.data.FormFactory; //导入方法依赖的package包/类
@Inject
public Signup(final PlayAuthenticate auth, final UserProvider userProvider,
final MyUsernamePasswordAuthProvider userPaswAuthProvider,
final FormFactory formFactory, final MessagesApi msg) {
this.auth = auth;
this.userProvider = userProvider;
this.userPaswAuthProvider = userPaswAuthProvider;
this.PASSWORD_RESET_FORM = formFactory.form(PasswordReset.class);
this.FORGOT_PASSWORD_FORM = formFactory.form(MyIdentity.class);
this.msg = msg;
}
示例8: LoginController
import play.data.FormFactory; //导入方法依赖的package包/类
@Inject
public LoginController(FormFactory formFactory,
UserDAO userDAO,
RecentQuestionsController recentQuestionsController) {
super(userDAO);
this.formFactory = formFactory;
this.formUserLoginData = formFactory.form(LoginData.class);
this.formUserRegisterData = formFactory.form(LoginRegisterData.class);
this.recentQuestionsController = recentQuestionsController;
}
示例9: NewQuestionController
import play.data.FormFactory; //导入方法依赖的package包/类
@Inject
public NewQuestionController(FormFactory formFactory, UserDAO userDAO,
QuestionDAO questionDAO, QuestionController questionController) {
super(userDAO);
this.formQuestion = formFactory.form(NewQuestionData.class);
this.questionDAO = questionDAO;
this.questionController = questionController;
}
示例10: QuestionController
import play.data.FormFactory; //导入方法依赖的package包/类
@Inject
public QuestionController(FormFactory formFactory, UserDAO userDAO,
QuestionDAO questionDAO, AnswerDAO answerDAO) {
super(userDAO);
this.formAnswer = formFactory.form(QuestionNewAnswerData.class);
this.questionDAO = questionDAO;
this.answerDAO = answerDAO;
}
示例11: GroupController
import play.data.FormFactory; //导入方法依赖的package包/类
@Inject
public GroupController(GroupManager groupManager,
GroupAccountManager groupAccountManager,
MediaManager mediaManager,
FriendshipManager friendshipManager,
PostManager postManager,
AccountManager accountManager,
FolderManager folderManager,
AvatarManager avatarManager,
NotificationService notificationService,
Configuration configuration,
FormFactory formFactory,
MessagesApi messagesApi) {
this.groupManager = groupManager;
this.groupAccountManager = groupAccountManager;
this.mediaManager = mediaManager;
this.friendshipManager = friendshipManager;
this.postManager = postManager;
this.accountManager = accountManager;
this.folderManager = folderManager;
this.avatarManager = avatarManager;
this.notificationService = notificationService;
this.configuration = configuration;
this.formFactory = formFactory;
this.messagesApi = messagesApi;
this.groupForm = formFactory.form(Group.class);
this.folderForm = formFactory.form(Folder.class);
this.postForm = formFactory.form(Post.class);
this.limit = configuration.getInt("htwplus.post.limit");
}
示例12: ProfileController
import play.data.FormFactory; //导入方法依赖的package包/类
@Inject
public ProfileController(AccountManager accountManager,
GroupAccountManager groupAccountManager,
PostManager postManager,
AccountController accountController,
StudycourseManager studycourseManager,
AvatarManager avatarManager,
MediaManager mediaManager, FriendshipManager friendshipManager,
Configuration configuration,FormFactory formFactory, MessagesApi messagesApi) {
this.accountManager = accountManager;
this.groupAccountManager = groupAccountManager;
this.postManager = postManager;
this.accountController = accountController;
this.studycourseManager = studycourseManager;
this.avatarManager = avatarManager;
this.mediaManager = mediaManager;
this.friendshipManager = friendshipManager;
this.configuration = configuration;
this.formFactory = formFactory;
this.messagesApi = messagesApi;
this.accountForm = formFactory.form(Account.class);
this.postForm = formFactory.form(Post.class);
this.loginForm = formFactory.form(Login.class);
this.LIMIT = configuration.getInt("htwplus.post.limit");
}
示例13: PostExistsAndUserIsOwnerAction
import play.data.FormFactory; //导入方法依赖的package包/类
@Inject
public PostExistsAndUserIsOwnerAction(PostService postService, FormFactory formFactory) {
this.postService = postService;
this.loginDTOForm = formFactory.form(LoginDTO.class);
}
示例14: AuthenticatedAction
import play.data.FormFactory; //导入方法依赖的package包/类
@Inject
public AuthenticatedAction(FormFactory formFactory) {
this.loginDTOForm = formFactory.form(LoginDTO.class);
}
示例15: UserController
import play.data.FormFactory; //导入方法依赖的package包/类
@Inject
public UserController(UserService userService, FormFactory formFactory) {
this.userService = userService;
this.loginForm = formFactory.form(LoginDTO.class);
this.registrationForm = formFactory.form(UserDTO.class);
}