public boolean isExpert() { return beanInfo.getBeanDescriptor().isExpert(); }
/** {@inheritDoc} */ @Override public Collection<String> getMenuCategories() { BeanDescriptor bd = beanInfo.getBeanDescriptor(); // Don't show expert beans in the menus unless we're in expert mode if (bd.isExpert() && !JMeterUtils.isExpertMode()) { return null; } List<String> menuCategories = setupGuiClassesList(); if (menuCategories.isEmpty()) { log.error("Could not assign GUI class to {}", testBeanClass); } else if (menuCategories.size() > 1) { // A TestBean implementation might implement // different TestElement interfaces without being a problem log.info("More than 1 GUI class found for {}", testBeanClass); } return menuCategories; }
out.writeObject(_descriptor.getCustomizerClass()); out.writeObject(_descriptor.getDisplayName()); out.writeBoolean(_descriptor.isExpert()); out.writeObject(_descriptor.getName()); out.writeBoolean(_descriptor.isPreferred());
public void writeExternal(ObjectOutput out) throws IOException { out.writeObject(_descriptor.getBeanClass()); out.writeObject(_descriptor.getCustomizerClass()); out.writeObject(_descriptor.getDisplayName()); out.writeBoolean(_descriptor.isExpert()); out.writeObject(_descriptor.getName()); out.writeBoolean(_descriptor.isPreferred()); out.writeObject(_descriptor.getShortDescription()); Map<String,Object> map = new HashMap<String, Object>(4,1); for (Enumeration<String> e = _descriptor.attributeNames(); e.hasMoreElements();) { String name = e.nextElement(); // It is not necessary to serialize AttachedObjectTarget list because // we only use it when VDL.retargetAttachedObjects() is called and this only // happen when the view is built. Also, try to serialize this instances could // cause unwanted exceptions. if (!AttachedObjectTarget.ATTACHED_OBJECT_TARGETS_KEY.equals(name)) { map.put(name, _descriptor.getValue(name)); } } out.writeObject(map); out.writeObject(_propertyDescriptors); } }
public void writeExternal(ObjectOutput out) throws IOException { out.writeObject(_descriptor.getBeanClass()); out.writeObject(_descriptor.getCustomizerClass()); out.writeObject(_descriptor.getDisplayName()); out.writeBoolean(_descriptor.isExpert()); out.writeObject(_descriptor.getName()); out.writeBoolean(_descriptor.isPreferred()); out.writeObject(_descriptor.getShortDescription()); Map<String,Object> map = new HashMap<String, Object>(4,1); for (Enumeration<String> e = _descriptor.attributeNames(); e.hasMoreElements();) { String name = e.nextElement(); // It is not necessary to serialize AttachedObjectTarget list because // we only use it when VDL.retargetAttachedObjects() is called and this only // happen when the view is built. Also, try to serialize this instances could // cause unwanted exceptions. if (!AttachedObjectTarget.ATTACHED_OBJECT_TARGETS_KEY.equals(name)) { map.put(name, _descriptor.getValue(name)); } } out.writeObject(map); out.writeObject(_propertyDescriptors); } }