Skip to content

Instantly share code, notes, and snippets.

@dancinllama
Created April 26, 2013 13:38
Show Gist options
  • Save dancinllama/5467433 to your computer and use it in GitHub Desktop.
Save dancinllama/5467433 to your computer and use it in GitHub Desktop.
/**
* 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