Class BeanMetadataContainer

java.lang.Object
io.github.mmm.bean.generator.BeanMetadataContainer
Direct Known Subclasses:
BeanMetadataContainerClass, BeanMetadataContainerInterface

public abstract class BeanMetadataContainer extends Object
Collector for introspection data of beans.
Since:
1.0.0
  • Field Details

    • beanType

      protected final Class<? extends io.github.mmm.bean.WritableBean> beanType
      See Also:
    • virtual

      protected final boolean virtual
      See Also:
  • Constructor Details

    • BeanMetadataContainer

      protected BeanMetadataContainer(Class<? extends io.github.mmm.bean.WritableBean> beanClass)
      The constructor.
      Parameters:
      beanClass - the bean type.
  • Method Details

    • getBeanType

      public Class<? extends io.github.mmm.bean.WritableBean> getBeanType()
      Returns:
      the Class reflecting the WritableBean this metadata is about.
    • isVirtual

      public boolean isVirtual()
      Returns:
      true if the bean type extends VirtualBean.
    • writeInstantiation

      public abstract void writeInstantiation(Writer writer, String beanClassVariable) throws IOException
      Writes the entire Java file.
      Parameters:
      writer - the Writer.
      beanClassVariable - the variable of the BeanClass to potentially pass to the Constructor.
      Throws:
      IOException - on error.