@Test public void testCheckBaseComponentRequirements() { AbstractComponent.checkBaseComponentRequirements(BaseComponentSub2.class); checkConstructor(BaseComponentSub1.class); checkConstructor(BaseComponentSub3.class); }
public static void checkBaseComponentRequirements(Class<? extends AbstractComponent> componentClass) throws IllegalArgumentException { try { componentClass.getConstructor(new Class[0]); } catch (SecurityException e) { throw new RuntimeException(e); } catch (NoSuchMethodException e) { throw new IllegalArgumentException(componentClass.getName() + " must provide a public no argument constructor"); } }
AbstractComponent implements Cloneable { public static void checkBaseComponentRequirements(Class<? extends AbstractComponent> componentClass) throws IllegalArgumentException { try { componentClass.getConstructor(new Class[0]); } catch (SecurityException e) { throw new RuntimeException(e); } catch (NoSuchMethodException e) { throw new IllegalArgumentException(componentClass.getName() + " must provide a public no argument constructor"); } } }
AbstractComponent implements Cloneable { public static void checkBaseComponentRequirements(Class<? extends AbstractComponent> componentClass) throws IllegalArgumentException { try { componentClass.getConstructor(new Class[0]); } catch (SecurityException e) { throw new RuntimeException(e); } catch (NoSuchMethodException e) { throw new IllegalArgumentException(componentClass.getName() + " must provide a public no argument constructor"); } }  }
AbstractComponent implements Cloneable { public static void checkBaseComponentRequirements(Class<? extends AbstractComponent> componentClass) throws IllegalArgumentException { try { componentClass.getConstructor(new Class[0]); } catch (SecurityException e) { throw new RuntimeException(e); } catch (NoSuchMethodException e) { throw new IllegalArgumentException(componentClass.getName() + " must provide a public no argument constructor"); } }  static void checkBaseComponentRequirements(Class<? extends AbstractComponent> componentClass); AbstractComponent getWorkUnitDelegate(); String getComponentTypeID(); Set<ViewInfo> getViewInfos(ViewType type); String getId(); String getComponentId(); void setId(String id); boolean isLeaf(); synchronized void setOwner(String owner); final synchronized String getOriginalOwner(); synchronized String getOwner(); synchronized String getCreator(); synchronized Date getCreationDate(); final void addDelegateComponent(AbstractComponent childComponent); final void componentSaved(); Collection<AbstractComponent> getReferencingComponents(); final boolean canBeDeleted(); final boolean addDelegateComponents(Collection<AbstractComponent> childComponents); final boolean addDelegateComponents(int childIndex,
                    Collection<AbstractComponent> childComponents); final void removeDelegateComponent(AbstractComponent childComponent); synchronized void removeDelegateComponents(Collection<AbstractComponent> childComponents); synchronized String getDisplayName(); String getExtendedDisplayName(); synchronized String getExternalKey(); synchronized void setExternalKey(String key); synchronized void setDisplayName(String name); void setAndUpdateDisplayName(String name); void setAndUpdateOwner(String name); final void open(); final void open(GraphicsConfiguration graphicsConfig); final T getCapability(Class<T> capability); final List<T> getCapabilities(Class<T> capability); boolean isDirty(); synchronized boolean isStale(); void save(); @Override AbstractComponent clone(); int getVersion(); T getAsset(Class<T> assetClass); @Deprecated final javax.swing.ImageIcon getIcon(); @Deprecated static javax.swing.ImageIcon getIconForComponentType(String className); synchronized void resetComponentProperties(ResetPropertiesTransaction txn); void addViewManifestation(View viewManifestation); Set<View> getAllViewManifestations(); synchronized List<AbstractComponent> getComponents(); static AbstractComponent getComponentById(String id); List<PropertyDescriptor> getFieldDescriptors(); }
AbstractComponent implements Cloneable { public static void checkBaseComponentRequirements(Class<? extends AbstractComponent> componentClass) throws IllegalArgumentException { try { componentClass.getConstructor(new Class[0]); } catch (SecurityException e) { throw new RuntimeException(e); } catch (NoSuchMethodException e) { throw new IllegalArgumentException(componentClass.getName() + " must provide a public no argument constructor"); } }  static void checkBaseComponentRequirements(Class<? extends AbstractComponent> componentClass); AbstractComponent getWorkUnitDelegate(); String getComponentTypeID(); Set<ViewInfo> getViewInfos(ViewType type); String getId(); String getComponentId(); void setId(String id); boolean isLeaf(); synchronized void setOwner(String owner); final synchronized String getOriginalOwner(); synchronized String getOwner(); synchronized String getCreator(); synchronized Date getCreationDate(); final void addDelegateComponent(AbstractComponent childComponent); final void componentSaved(); Collection<AbstractComponent> getReferencingComponents(); final boolean canBeDeleted(); final boolean addDelegateComponents(Collection<AbstractComponent> childComponents); final boolean addDelegateComponents(int childIndex,
                    Collection<AbstractComponent> childComponents); final void removeDelegateComponent(AbstractComponent childComponent); synchronized void removeDelegateComponents(Collection<AbstractComponent> childComponents); synchronized String getDisplayName(); String getExtendedDisplayName(); synchronized String getExternalKey(); synchronized void setExternalKey(String key); synchronized void setDisplayName(String name); void setAndUpdateDisplayName(String name); void setAndUpdateOwner(String name); final void open(); final void open(GraphicsConfiguration graphicsConfig); final T getCapability(Class<T> capability); final List<T> getCapabilities(Class<T> capability); boolean isDirty(); synchronized boolean isStale(); void save(); @Override AbstractComponent clone(); int getVersion(); T getAsset(Class<T> assetClass); @Deprecated final javax.swing.ImageIcon getIcon(); @Deprecated static javax.swing.ImageIcon getIconForComponentType(String className); synchronized void resetComponentProperties(ResetPropertiesTransaction txn); void addViewManifestation(View viewManifestation); Set<View> getAllViewManifestations(); synchronized List<AbstractComponent> getComponents(); static AbstractComponent getComponentById(String id); List<PropertyDescriptor> getFieldDescriptors(); final static AbstractComponent NULL_COMPONENT; }