private static ValidationContext getValidationContext() { return getModule().getValidation(); }
public WebModule deploy(WebModule webModule) throws OpenEJBException { setModule(webModule); try { webModule = discoverAnnotatedBeans.deploy(webModule); webModule = envEntriesPropertiesDeployer.deploy(webModule); webModule = processAnnotatedBeans.deploy(webModule); return webModule; } finally { removeModule(); } }
url = JarLocation.jarLocation(loadedClass).toURI().toURL().toExternalForm(); } catch (final MalformedURLException e) { url = classLocation(loadedClass).toExternalForm(); list.add(fileClazz.toURI().toURL().toExternalForm()); } else { list.add(classLocation(loadedClass).toExternalForm()); list.add(classLocation(loadedClass).toExternalForm()); list.add(classLocation(loadedClass).toExternalForm());
for (final Annotated<Class<?>> aClazz : annotatedClasses) { final Class<?> clazz = aClazz.get(); if (isInstantiable(clazz)) { if (!isEJB(clazz)) { classes.add(clazz.getName()); } else { final Class implClass = impl.iterator().next(); final String name = implClass.getName(); if (!isEJB(implClass)) { classes.add(name); } else { } else if (isEJB(clazz) && DynamicSubclass.isDynamic(clazz)) { classes.add(clazz.getName()); final Class<?> clazz = method.getDeclaringClass(); if (isInstantiable(clazz)) { if (!isEJB(clazz)) { classes.add(clazz.getName()); } else { webModule.getEjbRestServices().add(clazz.getName()); } else if (isEJB(clazz) && DynamicSubclass.isDynamic(clazz)) { classes.add(clazz.getName());
final AnnotationDeployer annotationDeployer = new AnnotationDeployer(); final BeanProperties beanProperties = new BeanProperties(); final AppContextConfigDeployer appContextConfigDeployer = new AppContextConfigDeployer(annotationDeployer.getEnvEntriesPropertiesDeployer(), beanProperties);
chain.add(new AnnotationDeployer());
} else if (isKnownEnvironmentEntryType(type)) { } else if (isShareableJNDINamespace(refName)) { final EnvEntry envEntry = new EnvEntry(); envEntry.setName(refName);
private static void addRestApplicationIfPossible(final WebModule webModule, final Class<? extends Application> app) { if (!isInstantiable(app)) { return; } if (app.getConstructors().length == 0) { webModule.getRestApplications().add(app.getName()); } else { for (final Constructor<?> ctr : app.getConstructors()) { if (ctr.getParameterTypes().length == 0) { webModule.getRestApplications().add(app.getName()); break; } } } }
AnnotationDeployer annotationDeployer = new AnnotationDeployer(); annotationDeployer.deploy(webModule); } catch (OpenEJBException e) { logger.error("Unable to process annotation in " + standardContext.getPath() + ": Exception: " + e.getMessage(), e);
final AnnotationDeployer annotationDeployer = new AnnotationDeployer(); final BeanProperties beanProperties = new BeanProperties(); final AppContextConfigDeployer appContextConfigDeployer = new AppContextConfigDeployer(annotationDeployer.getEnvEntriesPropertiesDeployer(), beanProperties);
for (final Annotated<Class<?>> aClazz : annotatedClasses) { final Class<?> clazz = aClazz.get(); if (isInstantiable(clazz)) { if (!isEJB(clazz)) { classes.add(clazz.getName()); } else { final Class implClass = (Class) impl.iterator().next(); final String name = implClass.getName(); if (!isEJB(implClass)) { classes.add(name); } else { } else if (isEJB(clazz) && DynamicSubclass.isDynamic(clazz)) { classes.add(clazz.getName()); final Class<?> clazz = method.getDeclaringClass(); if (isInstantiable(clazz)) { if (!isEJB(clazz)) { classes.add(clazz.getName()); } else { webModule.getEjbRestServices().add(clazz.getName()); } else if (isEJB(clazz) && DynamicSubclass.isDynamic(clazz)) { classes.add(clazz.getName());
} else if (isKnownEnvironmentEntryType(type)) { } else if (isShareableJNDINamespace(refName)) { final EnvEntry envEntry = new EnvEntry(); envEntry.setName(refName);
private static void addRestApplicationIfPossible(final WebModule webModule, final Class<? extends Application> app) { if (!isInstantiable(app)) { return; } if (app.getConstructors().length == 0) { webModule.getRestApplications().add(app.getName()); } else { for (final Constructor<?> ctr : app.getConstructors()) { if (ctr.getParameterTypes().length == 0) { webModule.getRestApplications().add(app.getName()); break; } } } }
public AppModule deploy(AppModule appModule) throws OpenEJBException { setModule(appModule); try { appModule = discoverAnnotatedBeans.deploy(appModule); appModule = envEntriesPropertiesDeployer.deploy(appModule); appModule = processAnnotatedBeans.deploy(appModule); return appModule; } finally { removeModule(); } }
private static ValidationContext getValidationContext() { return getModule().getValidation(); }
url = JarLocation.jarLocation(loadedClass).toURI().toURL().toExternalForm(); } catch (final MalformedURLException e) { url = classLocation(loadedClass).toExternalForm(); list.add(fileClazz.toURI().toURL().toExternalForm()); } else { list.add(classLocation(loadedClass).toExternalForm()); list.add(classLocation(loadedClass).toExternalForm()); list.add(classLocation(loadedClass).toExternalForm());
public WebModule deploy(WebModule webModule) throws OpenEJBException { setModule(webModule); final ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); Thread.currentThread().setContextClassLoader(webModule.getClassLoader()); try { webModule = discoverAnnotatedBeans.deploy(webModule); webModule = envEntriesPropertiesDeployer.deploy(webModule); webModule = processAnnotatedBeans.deploy(webModule); return webModule; } finally { envEntriesPropertiesDeployer.resetAdditionalEnvEntries(); Thread.currentThread().setContextClassLoader(classLoader); removeModule(); } }
private static ValidationContext getValidationContext() { return getModule().getValidation(); }
public WebModule deploy(WebModule webModule) throws OpenEJBException { setModule(webModule); final ClassLoader classLoader = Thread.currentThread().getContextClassLoader(); Thread.currentThread().setContextClassLoader(webModule.getClassLoader()); try { webModule = discoverAnnotatedBeans.deploy(webModule); webModule = envEntriesPropertiesDeployer.deploy(webModule); webModule = processAnnotatedBeans.deploy(webModule); return webModule; } finally { envEntriesPropertiesDeployer.resetAdditionalEnvEntries(); Thread.currentThread().setContextClassLoader(classLoader); removeModule(); } }