⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 subscriberhandler.java

📁 jsf example about book manager
💻 JAVA
字号:
package com.mycompany.newsservice.handlers;

import com.mycompany.newsservice.models.Subscriber;

/**
 * This class is an example of the type of class that acts as an adaptor
 * for JSF-independent business logic classes (such as Subscriber)
 * to make them accessible to JSF components. It contains a single
 * JSF action method for calling the save() method on a Subscriber instance.
 * A real class of this type typically has a lot more methods.
 *
 * @author Hans Bergsten, Gefion Software <hans@gefionsoftware.com>
 * @version 1.0
 */
public class SubscriberHandler {
    private Subscriber subscriber;

    public void setSubscriber(Subscriber subscriber) {
        this.subscriber = subscriber;
    }

    public String saveSubscriber() {
        subscriber.save();
        return "success";
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -