private Pattern initProxyIgnoreFinalMethodsPattern() { String ignore = getStringProperty(ConfigurationKey.PROXY_IGNORE_FINAL_METHODS); if (!ignore.isEmpty()) { return Pattern.compile(ignore); } return null; }
private Pattern initProxyIgnoreFinalMethodsPattern() { String ignore = getStringProperty(ConfigurationKey.PROXY_IGNORE_FINAL_METHODS); if (!ignore.isEmpty()) { return Pattern.compile(ignore); } return null; }
private Pattern initProxyIgnoreFinalMethodsPattern() { String ignore = getStringProperty(ConfigurationKey.PROXY_IGNORE_FINAL_METHODS); if (!ignore.isEmpty()) { return Pattern.compile(ignore); } return null; }
private Pattern initProxyIgnoreFinalMethodsPattern() { String ignore = getStringProperty(ConfigurationKey.PROXY_IGNORE_FINAL_METHODS); if (!ignore.isEmpty()) { return Pattern.compile(ignore); } return null; }
private Pattern initProxyIgnoreFinalMethodsPattern() { String ignore = getStringProperty(ConfigurationKey.PROXY_IGNORE_FINAL_METHODS); if (!ignore.isEmpty()) { return Pattern.compile(ignore); } return null; }
private Pattern initProxyIgnoreFinalMethodsPattern() { String ignore = getStringProperty(ConfigurationKey.PROXY_IGNORE_FINAL_METHODS); if (!ignore.isEmpty()) { return Pattern.compile(ignore); } return null; }
private File initProxyDumpFilePath() { String dumpPath = getStringProperty(ConfigurationKey.PROXY_DUMP); if (!dumpPath.isEmpty()) { File tmp = new File(dumpPath); if (!tmp.isDirectory() && !tmp.mkdirs()) { BeanLogger.LOG.directoryCannotBeCreated(tmp.toString()); return null; } else { return tmp; } } return null; }
private File initProxyDumpFilePath() { String dumpPath = getStringProperty(ConfigurationKey.PROXY_DUMP); if (!dumpPath.isEmpty()) { File tmp = new File(dumpPath); if (!tmp.isDirectory() && !tmp.mkdirs()) { BeanLogger.LOG.directoryCannotBeCreated(tmp.toString()); return null; } else { return tmp; } } return null; }
private File initProxyDumpFilePath() { String dumpPath = getStringProperty(ConfigurationKey.PROXY_DUMP); if (!dumpPath.isEmpty()) { File tmp = new File(dumpPath); if (!tmp.isDirectory() && !tmp.mkdirs()) { BeanLogger.LOG.directoryCannotBeCreated(tmp.toString()); return null; } else { return tmp; } } return null; }
private File initProxyDumpFilePath() { String dumpPath = getStringProperty(ConfigurationKey.PROXY_DUMP); if (!dumpPath.isEmpty()) { File tmp = new File(dumpPath); if (!tmp.isDirectory() && !tmp.mkdirs()) { BeanLogger.LOG.directoryCannotBeCreated(tmp.toString()); return null; } else { return tmp; } } return null; }
private File initProxyDumpFilePath() { String dumpPath = getStringProperty(ConfigurationKey.PROXY_DUMP); if (!dumpPath.isEmpty()) { File tmp = new File(dumpPath); if (!tmp.isDirectory() && !tmp.mkdirs()) { BeanLogger.LOG.directoryCannotBeCreated(tmp.toString()); return null; } else { return tmp; } } return null; }
private File initProxyDumpFilePath() { String dumpPath = getStringProperty(ConfigurationKey.PROXY_DUMP); if (!dumpPath.isEmpty()) { File tmp = new File(dumpPath); if (!tmp.isDirectory() && !tmp.mkdirs()) { BeanLogger.LOG.directoryCannotBeCreated(tmp.toString()); return null; } else { return tmp; } } return null; }
private static ThreadPoolType initThreadPoolType(WeldConfiguration configuration) { String threadPoolTypeString = configuration.getStringProperty(ConfigurationKey.EXECUTOR_THREAD_POOL_TYPE); if (threadPoolTypeString.isEmpty()) { // do not create ExecutorServices by default if we do not have the "modifyThreadGroup" permission return Permissions.hasPermission(Permissions.MODIFY_THREAD_GROUP) ? ThreadPoolType.FIXED : ThreadPoolType.NONE; } else { try { return ThreadPoolType.valueOf(threadPoolTypeString); } catch (Exception e) { throw BootstrapLogger.LOG.invalidThreadPoolType(threadPoolTypeString); } } }
public void afterBeanDiscovery(@Observes AfterBeanDiscovery event, BeanManager beanManager) { BeanManagerImpl weldManager = BeanManagerProxy.unwrap(beanManager); String exclude = weldManager.getServices().get(WeldConfiguration.class).getStringProperty(ConfigurationKey.PROBE_EVENT_MONITOR_EXCLUDE_TYPE); event.addObserverMethod(new ProbeObserver(weldManager, exclude.isEmpty() ? null : Pattern.compile(exclude), probe)); addContainerLifecycleEvent(event, null, beanManager); }
public void afterBeanDiscovery(@Observes AfterBeanDiscovery event, BeanManager beanManager) { BeanManagerImpl weldManager = BeanManagerProxy.unwrap(beanManager); String exclude = weldManager.getServices().get(WeldConfiguration.class).getStringProperty(ConfigurationKey.PROBE_EVENT_MONITOR_EXCLUDE_TYPE); event.addObserverMethod(new ProbeObserver(weldManager, exclude.isEmpty() ? null : Pattern.compile(exclude), probe)); addContainerLifecycleEvent(event, null, beanManager); }
public void afterBeanDiscovery(@Observes AfterBeanDiscovery event, BeanManager beanManager) { BeanManagerImpl weldManager = BeanManagerProxy.unwrap(beanManager); String exclude = weldManager.getServices().get(WeldConfiguration.class).getStringProperty(ConfigurationKey.PROBE_EVENT_MONITOR_EXCLUDE_TYPE); event.addObserverMethod(new ProbeObserver(weldManager, exclude.isEmpty() ? null : Pattern.compile(exclude), probe)); addContainerLifecycleEvent(event, null, beanManager); }
public void afterBeanDiscovery(@Observes AfterBeanDiscovery event, BeanManager beanManager) { BeanManagerImpl weldManager = BeanManagerProxy.unwrap(beanManager); String exclude = weldManager.getServices().get(WeldConfiguration.class).getStringProperty(ConfigurationKey.PROBE_EVENT_MONITOR_EXCLUDE_TYPE); event.addObserverMethod(new ProbeObserver(weldManager, exclude.isEmpty() ? null : Pattern.compile(exclude), probe)); addContainerLifecycleEvent(event, null, beanManager); }
public void afterBeanDiscovery(@Observes AfterBeanDiscovery event, BeanManager beanManager) { BeanManagerImpl weldManager = BeanManagerProxy.unwrap(beanManager); String exclude = weldManager.getServices().get(WeldConfiguration.class).getStringProperty(ConfigurationKey.PROBE_EVENT_MONITOR_EXCLUDE_TYPE); event.addObserverMethod(new ProbeObserver(weldManager, exclude.isEmpty() ? null : Pattern.compile(exclude), probe)); addContainerLifecycleEvent(event, null, beanManager); }
public void afterBeanDiscovery(@Observes AfterBeanDiscovery event, BeanManager beanManager) { BeanManagerImpl weldManager = BeanManagerProxy.unwrap(beanManager); String exclude = weldManager.getServices().get(WeldConfiguration.class).getStringProperty(ConfigurationKey.PROBE_EVENT_MONITOR_EXCLUDE_TYPE); event.addObserverMethod(new ProbeObserver(weldManager, exclude.isEmpty() ? null : Pattern.compile(exclude), probe)); addContainerLifecycleEvent(event, null, beanManager); }
public void afterBeanDiscovery(@Observes AfterBeanDiscovery event, BeanManager beanManager) { BeanManagerImpl weldManager = BeanManagerProxy.unwrap(beanManager); String exclude = weldManager.getServices().get(WeldConfiguration.class).getStringProperty(ConfigurationKey.PROBE_EVENT_MONITOR_EXCLUDE_TYPE); event.addObserverMethod(new ProbeObserver(weldManager, exclude.isEmpty() ? null : Pattern.compile(exclude), probe)); addContainerLifecycleEvent(event, null, beanManager); }