org.jboss.errai.codegen.meta.MetaClass.isDefaultInstantiable()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(3.0k)|赞(0)|评价(0)|浏览(92)

本文整理了Java中org.jboss.errai.codegen.meta.MetaClass.isDefaultInstantiable()方法的一些代码示例,展示了MetaClass.isDefaultInstantiable()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MetaClass.isDefaultInstantiable()方法的具体详情如下:
包路径:org.jboss.errai.codegen.meta.MetaClass
类名称:MetaClass
方法名:isDefaultInstantiable

MetaClass.isDefaultInstantiable介绍

暂无

代码示例

代码示例来源:origin: errai/errai

@Override
 public void callback(final MetaClass type) {
  if (type.isDefaultInstantiable() && type.isAssignableTo(widgetClazz)) {
   addProviderForWidgetType(injectionContext, type);
  }
 }
});

代码示例来源:origin: errai/errai

private List<Statement> contextLocalVarDeclarations(final Collection<MetaClass> scopeContextTypes) {
 final List<Statement> declarations = new ArrayList<>();
 for (final MetaClass scopeContextImpl : scopeContextTypes) {
  if (!scopeContextImpl.isDefaultInstantiable()) {
   throw new RuntimeException(
       "The @ScopeContext " + scopeContextImpl.getName() + " must have a public, no-args constructor.");
  }
  declarations.add(declareFinalVariable(getContextVarName(scopeContextImpl), Context.class,
      newInstanceOf(scopeContextImpl)));
 }
 return declarations;
}

代码示例来源:origin: errai/errai

private void addProviderForWidgetType(final InjectionContext injectionContext, final MetaClass widgetType) {
 if (widgetType.isPublic() && widgetType.isDefaultInstantiable()) {
  final InjectableHandle handle = new InjectableHandle(widgetType,
      injectionContext.getQualifierFactory().forDefault());

代码示例来源:origin: errai/errai

@Test
public void testAccessModifiersForPublicTopLevelClass() throws Exception {
 final MetaClass child = getMetaClass(Child.class);
 assertTrue(child.isPublic());
 assertFalse(child.isProtected());
 assertFalse(child.isPrivate());
 assertTrue(child.isDefaultInstantiable());
}

代码示例来源:origin: org.jboss.errai/errai-data-binding

if (componentType.isAssignableTo(Widget.class)) {
 if (!decorable.get().isAnnotationPresent(Inject.class) && decorable.decorableType().equals(DecorableType.FIELD) && componentType.isDefaultInstantiable()) {
  Statement widgetInit = Stmt.loadVariable("this").invoke(
    PrivateAccessUtil.getPrivateFieldAccessorName(decorable.getAsField()),

代码示例来源:origin: errai/errai

if (componentType.isAssignableTo(Widget.class)) {
 if (!decorable.get().isAnnotationPresent(Inject.class) && decorable.decorableType().equals(DecorableType.FIELD) && componentType.isDefaultInstantiable()) {
  Statement widgetInit = Stmt.loadVariable("this").invoke(
    PrivateAccessUtil.getPrivateFieldAccessorName(decorable.getAsField()),

代码示例来源:origin: org.jboss.errai/errai-codegen

+ " is an unproxiable class because it is final");
if (!toProxy.isDefaultInstantiable()) {
 throw new UnproxyableClassException(toProxy, toProxy.getFullyQualifiedName() + " must have a default " +
   "no-arg constructor");

代码示例来源:origin: errai/errai

+ " is an unproxiable class because it is final");
if (!toProxy.isDefaultInstantiable()) {
 throw new UnproxyableClassException(toProxy, toProxy.getFullyQualifiedName() + " must have a default " +
   "no-arg constructor");

相关文章