Created
April 26, 2013 13:38
-
-
Save dancinllama/5467433 to your computer and use it in GitHub Desktop.
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
/** | |
* ManagedPackageUtils | |
* @description Utility class for finding info out regarding managed package | |
* @author James Loghry | |
* @date 2/12/2013 | |
*/ | |
public class ManagedPackageUtils{ | |
/** | |
* @description determines the namespace prefix of the managed package | |
*/ | |
public static String getNamespacePrefix(){ | |
String ans = [Select NamespacePrefix From ApexClass Where Name='ContactTriggerHandler'].NamespacePrefix; | |
return (ans == null) ? '' : ans+'__'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment