Skip to content

Instantly share code, notes, and snippets.

@dileeph
Created May 31, 2017 20:17
Show Gist options
  • Save dileeph/920cb84d6f06ff23f54d1456ed445994 to your computer and use it in GitHub Desktop.
Save dileeph/920cb84d6f06ff23f54d1456ed445994 to your computer and use it in GitHub Desktop.
modified client for ComponentContext
/**
* Hook method called on activation of this service client.
* @param context BundleContext
*/
public void activate(ComponentContext context){
System.out.println(" >>> " + context.getProperties().get("cmp.name"));
}
/**
* Hook method called on deactivation of this service client.
* @param context BundleContext
*/
public void deactivate(BundleContext context){
System.out.println("<<< " + context.getProperty("java.vendor"));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment