use of org.drools.core.rule.Annotated in project drools by kiegroup.
the class TypeDeclarationCache method createTypeDeclarationForBean.
private TypeDeclaration createTypeDeclarationForBean(Class<?> cls) {
Annotated annotated = new Annotated.ClassAdapter(cls);
TypeDeclaration typeDeclaration = TypeDeclaration.createTypeDeclarationForBean(cls, annotated, kbuilder.getBuilderConfiguration().getPropertySpecificOption());
String namespace = ClassUtils.getPackage(cls);
PackageRegistry pkgRegistry = kbuilder.getOrCreatePackageRegistry(new PackageDescr(namespace));
processMvelBasedAccessors(kbuilder, pkgRegistry, annotated, typeDeclaration);
return typeDeclaration;
}
Aggregations