@Override protected Class<?> findClass(String name) throws ClassNotFoundException { return sd.loadClass(name); }
public Class<?> getModelType() { if (modelType == null) { try { modelType = factoryDeclaration.loadClass(modelTypeName); } catch (Exception e) { throw new IllegalStateException(e); } } return modelType; }
public Class<?> getModelType() { if (modelType == null) { try { modelType = providerClass.loadClass(modelTypeName); } catch (Exception e) { throw new IllegalStateException(e); } } return modelType; }
public Class<?> getModelType() { if (modelTypeName != null && modelType == null) { try { modelType = processorDeclaration.loadClass(modelTypeName); } catch (Exception e) { IllegalStateException ie = new IllegalStateException(e); throw ie; } } return modelType; }
public Class<?> getModelType() { if (modelType == null) { try { modelType = providerClass.loadClass(modelTypeName); } catch (Exception e) { throw new IllegalStateException(e); } } return modelType; } }
public Class<?> getModelType() { if (modelTypeName != null && modelType == null) { try { modelType = processorDeclaration.loadClass(modelTypeName); } catch (Exception e) { IllegalStateException ie = new IllegalStateException(e); throw ie; } } return modelType; }
public Class<?> getModelType() { if (modelTypeName != null && modelType == null) { try { modelType = processorDeclaration.loadClass(modelTypeName); } catch (ClassNotFoundException e) { IllegalStateException ie = new IllegalStateException(e); throw ie; } } return modelType; }
public Class<?> getModelType() { if (modelType == null) { try { modelType = providerClass.loadClass(modelTypeName); } catch (Exception e) { throw new IllegalStateException(e); } } return modelType; } }
public Class<?> getModelType() { if (modelTypeName != null && modelType == null) { try { modelType = processorDeclaration.loadClass(modelTypeName); } catch (ClassNotFoundException e) { IllegalStateException ie = new IllegalStateException(e); throw ie; } } return modelType; }
public Class<?> getModelType() { if (modelType == null) { try { modelType = providerClass.loadClass(modelTypeName); } catch (Exception e) { throw new IllegalStateException(e); } } return modelType; } }
public Class<?> getModelType() { if (modelType == null) { try { modelType = providerClass.loadClass(modelTypeName); } catch (Exception e) { throw new IllegalStateException(e); } } return modelType; } }
public Class<?> getModelType() { if (modelType == null) { try { modelType = providerClass.loadClass(modelTypeName); } catch (Exception e) { throw new IllegalStateException(e); } } return modelType; } }
public Class<?> getModelType() { if (modelTypeName != null && modelType == null) { try { modelType = processorDeclaration.loadClass(modelTypeName); } catch (Exception e) { IllegalStateException ie = new IllegalStateException(e); throw ie; } } return modelType; }
public Class<?> getModelType() { if (modelTypeName != null && modelType == null) { try { modelType = processorDeclaration.loadClass(modelTypeName); } catch (Exception e) { IllegalStateException ie = new IllegalStateException(e); throw ie; } } return modelType; }
public Class<?> getModelType() { if (modelType == null) { try { modelType = factoryDeclaration.loadClass(modelTypeName); } catch (Exception e) { throw new IllegalStateException(e); } } return modelType; }
public Class<?> getModelType() { if (modelType == null) { try { modelType = providerClass.loadClass(modelTypeName); } catch (Exception e) { throw new IllegalStateException(e); } } return modelType; }
private static ClassLoader getClassLoader(ServiceDiscovery discovery, Class<?> serviceType) { try { ServiceDeclaration sd = discovery.getServiceDeclaration(serviceType); if (sd != null) { return sd.loadClass().getClassLoader(); } } catch (Exception e) { // Ignore } return null; }
private static ClassLoader getClassLoader(ServiceDiscovery discovery, Class<?> serviceType) { try { ServiceDeclaration sd = discovery.getServiceDeclaration(serviceType); if (sd != null) { return sd.loadClass().getClassLoader(); } } catch (Exception e) { // Ignore } return null; }
private Object getAttribute(Method method) throws Exception { if (method.getParameterTypes().length != 0) { return null; } String name = method.getName(); if (name.equals("getModelType") && method.getReturnType() == Class.class) { return sd.loadClass(sd.getAttributes().get("model")); } else if (name.equals("getArtifactType")) { return ServiceDeclarationParser.getQName(sd.getAttributes().get("qname")); } return null; }
private Object getAttribute(Method method) throws Exception { if (method.getParameterTypes().length != 0) { return null; } String name = method.getName(); if (name.equals("getModelType") && method.getReturnType() == Class.class) { return sd.loadClass(sd.getAttributes().get("model")); } else if (name.equals("getArtifactType")) { return ServiceDeclarationParser.getQName(sd.getAttributes().get("qname")); } return null; }