Is there a Magnolia API to check if we are in CE or EE?

I see 2 ways: 

1) through licenseProperties
String mgnlEdition = licenseProperties.get(LicenseFileExtractor.EDITION);
String mgnlVersion = licenseProperties.get(LicenseFileExtractor.VERSION_NUMBER);

2) through ModuleRegistry
Object module = 
Components.getComponent(ModuleRegistry.class).getModuleInstance("enterprise");
if (module == null) ... CE ... else ... EE

suggestions?

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=29bde765-bceb-4395-bf9e-0351db6c1b00


----------------------------------------------------------------
For list details, see http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to