Java SystemModule Example

Introduction

The java systemmodule example is extracted from the most popular open source projects, you can refer to the following example for usage.

Programming language: Java

Namespace/package name: hk.hku.cecid.piazza.commons.module

Example#1
File: EbmsProcessor.javaProject: neilbelford/jentrata-msh

 public static ValidationComponent getValidator() {
   ValidationComponent v = (ValidationComponent) core.getComponent(COMPONENT_VALIDATOR);
   if (v == null) {
     throw new ModuleException("Validator not found");
   } else {
     return v;
   }
 }

Example#2
File: EbmsProcessor.javaProject: neilbelford/jentrata-msh

 public static KeyStoreManager getKeyStoreManagerForDecryption() {
   KeyStoreManager m =
       (KeyStoreManager) core.getComponent(COMPONENT_KEYSTORE_MANAGER_FOR_DECRYPTION);
   if (m == null) {
     throw new ModuleException("Key store manager for decryption not found");
   } else {
     return m;
   }
 }

Example#3
File: EbmsProcessor.javaProject: neilbelford/jentrata-msh

 public static KeyStoreManager getKeyStoreManagerForSignature() {
   KeyStoreManager m =
       (KeyStoreManager) core.getComponent(COMPONENT_KEYSTORE_MANAGER_FOR_SIGNATURE);
   if (m == null) {
     throw new ModuleException("Key store manager for signature not found");
   } else {
     return m;
   }
 }