final boolean hasLazyActivatePolicy() { ModuleRevision current = getCurrentRevision(); return current == null ? false : current.hasLazyActivatePolicy(); }
final boolean hasLazyActivatePolicy() { ModuleRevision current = getCurrentRevision(); return current == null ? false : current.hasLazyActivatePolicy(); }
final boolean hasLazyActivatePolicy() { ModuleRevision current = getCurrentRevision(); return current == null ? false : current.hasLazyActivatePolicy(); }
final boolean hasLazyActivatePolicy() { ModuleRevision current = getCurrentRevision(); return current == null ? false : current.hasLazyActivatePolicy(); }
final boolean hasLazyActivatePolicy() { ModuleRevision current = getCurrentRevision(); return current == null ? false : current.hasLazyActivatePolicy(); }
final boolean hasLazyActivatePolicy() { ModuleRevision current = getCurrentRevision(); return current == null ? false : current.hasLazyActivatePolicy(); }
private boolean isLazyStartable(String className, ModuleRevision revision) { if (!revision.hasLazyActivatePolicy()) { return false; } List<ModuleCapability> moduleDatas = revision.getModuleCapabilities(EquinoxModuleDataNamespace.MODULE_DATA_NAMESPACE); if (moduleDatas.isEmpty()) { return false; } Map<String, Object> moduleDataAttrs = moduleDatas.get(0).getAttributes(); @SuppressWarnings("unchecked") List<String> excludes = (List<String>) moduleDataAttrs.get(EquinoxModuleDataNamespace.CAPABILITY_LAZY_EXCLUDE_ATTRIBUTE); @SuppressWarnings("unchecked") List<String> includes = (List<String>) moduleDataAttrs.get(EquinoxModuleDataNamespace.CAPABILITY_LAZY_INCLUDE_ATTRIBUTE); // no exceptions, it is easy to figure it out if (excludes == null && includes == null) return true; // otherwise, we need to check if the package is in the exceptions list int dotPosition = className.lastIndexOf('.'); // the class has no package name... no exceptions apply if (dotPosition == -1) return true; String packageName = className.substring(0, dotPosition); return ((includes == null || includes.contains(packageName)) && (excludes == null || !excludes.contains(packageName))); }
private boolean isLazyStartable(String className, ModuleRevision revision) { if (!revision.hasLazyActivatePolicy()) { return false; } List<ModuleCapability> moduleDatas = revision.getModuleCapabilities(EquinoxModuleDataNamespace.MODULE_DATA_NAMESPACE); if (moduleDatas.isEmpty()) { return false; } Map<String, Object> moduleDataAttrs = moduleDatas.get(0).getAttributes(); @SuppressWarnings("unchecked") List<String> excludes = (List<String>) moduleDataAttrs.get(EquinoxModuleDataNamespace.CAPABILITY_LAZY_EXCLUDE_ATTRIBUTE); @SuppressWarnings("unchecked") List<String> includes = (List<String>) moduleDataAttrs.get(EquinoxModuleDataNamespace.CAPABILITY_LAZY_INCLUDE_ATTRIBUTE); // no exceptions, it is easy to figure it out if (excludes == null && includes == null) return true; // otherwise, we need to check if the package is in the exceptions list int dotPosition = className.lastIndexOf('.'); // the class has no package name... no exceptions apply if (dotPosition == -1) return true; String packageName = className.substring(0, dotPosition); return ((includes == null || includes.contains(packageName)) && (excludes == null || !excludes.contains(packageName))); }
private boolean isLazyStartable(String className, ModuleRevision revision) { if (!revision.hasLazyActivatePolicy()) { return false; } List<ModuleCapability> moduleDatas = revision.getModuleCapabilities(EquinoxModuleDataNamespace.MODULE_DATA_NAMESPACE); if (moduleDatas.isEmpty()) { return false; } Map<String, Object> moduleDataAttrs = moduleDatas.get(0).getAttributes(); @SuppressWarnings("unchecked") List<String> excludes = (List<String>) moduleDataAttrs.get(EquinoxModuleDataNamespace.CAPABILITY_LAZY_EXCLUDE_ATTRIBUTE); @SuppressWarnings("unchecked") List<String> includes = (List<String>) moduleDataAttrs.get(EquinoxModuleDataNamespace.CAPABILITY_LAZY_INCLUDE_ATTRIBUTE); // no exceptions, it is easy to figure it out if (excludes == null && includes == null) return true; // otherwise, we need to check if the package is in the exceptions list int dotPosition = className.lastIndexOf('.'); // the class has no package name... no exceptions apply if (dotPosition == -1) return true; String packageName = className.substring(0, dotPosition); return ((includes == null || includes.contains(packageName)) && (excludes == null || !excludes.contains(packageName))); }
private boolean isLazyStartable(String className, ModuleRevision revision) { if (!revision.hasLazyActivatePolicy()) { return false; } List<ModuleCapability> moduleDatas = revision.getModuleCapabilities(EquinoxModuleDataNamespace.MODULE_DATA_NAMESPACE); if (moduleDatas.isEmpty()) { return false; } Map<String, Object> moduleDataAttrs = moduleDatas.get(0).getAttributes(); @SuppressWarnings("unchecked") List<String> excludes = (List<String>) moduleDataAttrs.get(EquinoxModuleDataNamespace.CAPABILITY_LAZY_EXCLUDE_ATTRIBUTE); @SuppressWarnings("unchecked") List<String> includes = (List<String>) moduleDataAttrs.get(EquinoxModuleDataNamespace.CAPABILITY_LAZY_INCLUDE_ATTRIBUTE); // no exceptions, it is easy to figure it out if (excludes == null && includes == null) return true; // otherwise, we need to check if the package is in the exceptions list int dotPosition = className.lastIndexOf('.'); // the class has no package name... no exceptions apply if (dotPosition == -1) return true; String packageName = className.substring(0, dotPosition); return ((includes == null || includes.contains(packageName)) && (excludes == null || !excludes.contains(packageName))); }
private boolean isLazyStartable(String className, ModuleRevision revision) { if (!revision.hasLazyActivatePolicy()) { return false; } List<ModuleCapability> moduleDatas = revision.getModuleCapabilities(EquinoxModuleDataNamespace.MODULE_DATA_NAMESPACE); if (moduleDatas.isEmpty()) { return false; } Map<String, Object> moduleDataAttrs = moduleDatas.get(0).getAttributes(); @SuppressWarnings("unchecked") List<String> excludes = (List<String>) moduleDataAttrs.get(EquinoxModuleDataNamespace.CAPABILITY_LAZY_EXCLUDE_ATTRIBUTE); @SuppressWarnings("unchecked") List<String> includes = (List<String>) moduleDataAttrs.get(EquinoxModuleDataNamespace.CAPABILITY_LAZY_INCLUDE_ATTRIBUTE); // no exceptions, it is easy to figure it out if (excludes == null && includes == null) return true; // otherwise, we need to check if the package is in the exceptions list int dotPosition = className.lastIndexOf('.'); // the class has no package name... no exceptions apply if (dotPosition == -1) return true; String packageName = className.substring(0, dotPosition); return ((includes == null || includes.contains(packageName)) && (excludes == null || !excludes.contains(packageName))); }
private boolean isLazyStartable(String className, ModuleRevision revision) { if (!revision.hasLazyActivatePolicy()) { return false; } List<ModuleCapability> moduleDatas = revision.getModuleCapabilities(EquinoxModuleDataNamespace.MODULE_DATA_NAMESPACE); if (moduleDatas.isEmpty()) { return false; } Map<String, Object> moduleDataAttrs = moduleDatas.get(0).getAttributes(); @SuppressWarnings("unchecked") List<String> excludes = (List<String>) moduleDataAttrs.get(EquinoxModuleDataNamespace.CAPABILITY_LAZY_EXCLUDE_ATTRIBUTE); @SuppressWarnings("unchecked") List<String> includes = (List<String>) moduleDataAttrs.get(EquinoxModuleDataNamespace.CAPABILITY_LAZY_INCLUDE_ATTRIBUTE); // no exceptions, it is easy to figure it out if (excludes == null && includes == null) return true; // otherwise, we need to check if the package is in the exceptions list int dotPosition = className.lastIndexOf('.'); // the class has no package name... no exceptions apply if (dotPosition == -1) return true; String packageName = className.substring(0, dotPosition); return ((includes == null || includes.contains(packageName)) && (excludes == null || !excludes.contains(packageName))); }