blob: e6c1e3e50a6ba2dfa7398bb310b48a437af4931d [file] [log] [blame]
package org.apache.felix.ipojo.log.handler.example;
import org.apache.felix.ipojo.annotations.*;
import org.apache.felix.ipojo.foo.FooService;
import org.apache.felix.ipojo.log.handler.Log;
@Component(immediate = true)
@Log(level = Log.Level.INFO) // We configure the handler.
@Instantiate(name = "my.simple.consumer")
public class SimpleComponent {
@Requires
FooService fs;
@Validate
public void starting() {
System.out.println("Starting...");
fs.foo();
}
@Invalidate
public void stopping() {
System.out.println("Stopping...");
}
}