예제 #1
0
 private void loadObjectSupplierClass(String objectSupplierValue) throws AxisFault {
   try {
     ClassLoader loader = service.getClassLoader();
     Class objectSupplierImpl = Loader.loadClass(loader, objectSupplierValue.trim());
     ObjectSupplier objectSupplier = (ObjectSupplier) objectSupplierImpl.newInstance();
     service.setObjectSupplier(objectSupplier);
   } catch (Exception e) {
     throw AxisFault.makeFault(e);
   }
 }
예제 #2
0
 private void loadServiceLifeCycleClass(String className) throws DeploymentException {
   if (className != null) {
     try {
       ClassLoader loader = service.getClassLoader();
       Class serviceLifeCycleClassImpl = Loader.loadClass(loader, className);
       ServiceLifeCycle serviceLifeCycle =
           (ServiceLifeCycle) serviceLifeCycleClassImpl.newInstance();
       service.setServiceLifeCycle(serviceLifeCycle);
     } catch (Exception e) {
       throw new DeploymentException(e.getMessage(), e);
     }
   }
 }