Created
May 31, 2017 20:17
-
-
Save dileeph/920cb84d6f06ff23f54d1456ed445994 to your computer and use it in GitHub Desktop.
modified client for ComponentContext
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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