Module io.github.mmm.bean.generator
Package io.github.mmm.bean.generator
Class BeanMetadataContainer
java.lang.Object
io.github.mmm.bean.generator.BeanMetadataContainer
- Direct Known Subclasses:
BeanMetadataContainerClass,BeanMetadataContainerInterface
Collector for introspection data of
beans.- Since:
- 1.0.0
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBeanMetadataContainer(Class<? extends io.github.mmm.bean.WritableBean> beanClass) The constructor. -
Method Summary
Modifier and TypeMethodDescriptionClass<? extends io.github.mmm.bean.WritableBean> booleanabstract voidwriteInstantiation(Writer writer, String beanClassVariable) Writes the entire Java file.
-
Field Details
-
beanType
- See Also:
-
virtual
protected final boolean virtual- See Also:
-
-
Constructor Details
-
BeanMetadataContainer
The constructor.- Parameters:
beanClass- thebean type.
-
-
Method Details
-
getBeanType
- Returns:
- the
Classreflecting theWritableBeanthis metadata is about.
-
isVirtual
public boolean isVirtual()- Returns:
trueif thebean typeextendsVirtualBean.
-
writeInstantiation
Writes the entire Java file.- Parameters:
writer- theWriter.beanClassVariable- the variable of theBeanClassto potentially pass to theConstructor.- Throws:
IOException- on error.
-