All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.firefly.example.ioc.HelloServiceImpl Maven / Gradle / Ivy

There is a newer version: 5.0.2
Show newest version
package com.firefly.example.ioc;

import com.firefly.annotation.DestroyedMethod;
import com.firefly.annotation.InitialMethod;

/**
 * @author Pengtao Qiu
 */
@ProxyChain
public class HelloServiceImpl implements HelloService {

    private String message;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    @Override
    public void print() {
        System.out.println(message);
    }

    @InitialMethod
    public void init() {
        System.out.println("init HelloService");
    }

    @DestroyedMethod
    public void destroy() {
        System.out.println("destroy HelloService");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy