当前位置: 首页>>代码示例>>Java>>正文


Java FormFactory.form方法代码示例

本文整理汇总了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);
}
 
开发者ID:Vadus,项目名称:songs_play,代码行数:9,代码来源:MyStupidBasicAuthProvider.java

示例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);
}
 
开发者ID:socia-platform,项目名称:htwplus,代码行数:21,代码来源:PostController.java

示例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");
}
 
开发者ID:socia-platform,项目名称:htwplus,代码行数:21,代码来源:Application.java

示例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);
}
 
开发者ID:socia-platform,项目名称:htwplus,代码行数:21,代码来源:AdminController.java

示例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);
}
 
开发者ID:Vadus,项目名称:songs_play,代码行数:9,代码来源:MyUsernamePasswordAuthProvider.java

示例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;
}
 
开发者ID:Vadus,项目名称:songs_play,代码行数:14,代码来源:Account.java

示例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;
}
 
开发者ID:Vadus,项目名称:songs_play,代码行数:13,代码来源:Signup.java

示例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;
}
 
开发者ID:Semantive,项目名称:cassandra-trainings-ho,代码行数:11,代码来源:LoginController.java

示例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;
}
 
开发者ID:Semantive,项目名称:cassandra-trainings-ho,代码行数:9,代码来源:NewQuestionController.java

示例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;
}
 
开发者ID:Semantive,项目名称:cassandra-trainings-ho,代码行数:9,代码来源:QuestionController.java

示例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");
}
 
开发者ID:socia-platform,项目名称:htwplus,代码行数:32,代码来源:GroupController.java

示例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");

}
 
开发者ID:socia-platform,项目名称:htwplus,代码行数:28,代码来源:ProfileController.java

示例13: PostExistsAndUserIsOwnerAction

import play.data.FormFactory; //导入方法依赖的package包/类
@Inject
public PostExistsAndUserIsOwnerAction(PostService postService, FormFactory formFactory) {
    this.postService = postService;
    this.loginDTOForm = formFactory.form(LoginDTO.class);
}
 
开发者ID:reljicd,项目名称:play-framework-blog,代码行数:6,代码来源:PostExistsAndUserIsOwnerAction.java

示例14: AuthenticatedAction

import play.data.FormFactory; //导入方法依赖的package包/类
@Inject
public AuthenticatedAction(FormFactory formFactory) {
    this.loginDTOForm = formFactory.form(LoginDTO.class);
}
 
开发者ID:reljicd,项目名称:play-framework-blog,代码行数:5,代码来源:AuthenticatedAction.java

示例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);
}
 
开发者ID:reljicd,项目名称:play-framework-blog,代码行数:7,代码来源:UserController.java


注:本文中的play.data.FormFactory.form方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。