javax.enterprise.inject.spi.AnnotatedMethod.isStatic()方法的使用及代码示例

x33g5p2x  于11个月前 转载在 其他  
字(5.8k)|赞(0)|评价(0)|浏览(28)

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

AnnotatedMethod.isStatic介绍

暂无

代码示例

代码示例来源:origin: org.jboss.weld.osgi/weld-osgi-core-extension

@Override
public boolean isStatic() {
  return method.isStatic();
}

代码示例来源:origin: org.jboss.forge/forge-event-bus

@Override
public boolean isStatic()
{
 return method.isStatic();
}

代码示例来源:origin: io.astefanutti.metrics.cdi/metrics-cdi

@Override
public boolean isStatic() {
  return decoratedMethod.isStatic();
}

代码示例来源:origin: astefanutti/metrics-cdi

@Override
public boolean isStatic() {
  return decoratedMethod.isStatic();
}

代码示例来源:origin: org.jboss.jsr299.tck/jsr299-tck-impl

public boolean isStatic()
{
 return delegate.isStatic();
}

代码示例来源:origin: org.apache.camel/camel-test-cdi

@Override
public boolean isStatic() {
  return decoratedMethod.isStatic();
}

代码示例来源:origin: com.tomitribe.tribestream/tribestream-container

@Override
public boolean isStatic() {
  return original.isStatic();
}

代码示例来源:origin: org.mvc-spec.ozark/ozark-core

@Override
public boolean isStatic() {
  return wrapped.isStatic();
}

代码示例来源:origin: org.jboss.cdi.tck/cdi-tck-impl

public boolean isStatic() {
  return delegate.isStatic();
}

代码示例来源:origin: com.caucho/resin

public NonBusinessMethodGenerator(AnnotatedMethod<? super X> method)
{
 _method = method;
 
 if (method.isStatic())
  throw new IllegalStateException();
}

代码示例来源:origin: com.caucho/resin

public ObserverMethodImpl(InjectManager beanManager,
             Bean<X> bean,
             AnnotatedMethod<X> method,
             Type type,
             Set<Annotation> qualifiers)
{
 _cdiManager = beanManager;
 _bean = bean;
 _method = method;
 _method.getJavaMember().setAccessible(true);
 _isStatic = _method.isStatic();
 _type = type;
 _qualifiers = qualifiers;
 introspect();
}

代码示例来源:origin: org.jboss.weld.se/weld-se

public static List<AnnotatedMethod<?>> getInterceptableMethods(AnnotatedType<?> type) {
  List<AnnotatedMethod<?>> annotatedMethods = new ArrayList<AnnotatedMethod<?>>();
  for (AnnotatedMethod<?> annotatedMethod : type.getMethods()) {
    boolean businessMethod = !annotatedMethod.isStatic() && !annotatedMethod.isAnnotationPresent(Inject.class)
        && !annotatedMethod.getJavaMember().isBridge();
    if (businessMethod && !isInterceptorMethod(annotatedMethod)) {
      annotatedMethods.add(annotatedMethod);
    }
  }
  return annotatedMethods;
}

代码示例来源:origin: com.sun.jersey/jersey-servlet

public AnnotatedMethodImpl(AnnotatedMethod<? super T> method, Set<Annotation> annotations, AnnotatedType<T> declaringType) {
  this(method.getBaseType(),
     method.getTypeClosure(),
     annotations,
     declaringType,
     method.getJavaMember(),
     method.isStatic());
}

代码示例来源:origin: com.sun.jersey/jersey-bundle

public AnnotatedMethodImpl(AnnotatedMethod<? super T> method, Set<Annotation> annotations, AnnotatedType<T> declaringType) {
  this(method.getBaseType(),
     method.getTypeClosure(),
     annotations,
     declaringType,
     method.getJavaMember(),
     method.isStatic());
}

代码示例来源:origin: jersey/jersey-1.x

public AnnotatedMethodImpl(AnnotatedMethod<? super T> method, Set<Annotation> annotations, AnnotatedType<T> declaringType) {
  this(method.getBaseType(),
     method.getTypeClosure(),
     annotations,
     declaringType,
     method.getJavaMember(),
     method.isStatic());
}

代码示例来源:origin: com.sun.jersey/jersey-servlet

public AnnotatedMethodImpl(AnnotatedMethod<? super T> method, AnnotatedType<T> declaringType) {
  this(method.getBaseType(),
     method.getTypeClosure(),
     method.getAnnotations(),
     declaringType,
     method.getJavaMember(),
     method.isStatic());
}

代码示例来源:origin: com.sun.jersey/jersey-bundle

public AnnotatedMethodImpl(AnnotatedMethod<? super T> method, AnnotatedType<T> declaringType) {
  this(method.getBaseType(),
     method.getTypeClosure(),
     method.getAnnotations(),
     declaringType,
     method.getJavaMember(),
     method.isStatic());
}

代码示例来源:origin: jersey/jersey-1.x

public AnnotatedMethodImpl(AnnotatedMethod<? super T> method, AnnotatedType<T> declaringType) {
  this(method.getBaseType(),
     method.getTypeClosure(),
     method.getAnnotations(),
     declaringType,
     method.getJavaMember(),
     method.isStatic());
}

代码示例来源:origin: weld/core

public void dispose(T instance) {
  if (disposalMethod != null) {
    // CreationalContext is only created if we need it to obtain the receiver
    // MethodInvocationStrategy takes care of creating CC for parameters, if needed
    if (disposalMethod.getAnnotated().isStatic()) {
      disposalMethod.invokeDisposeMethod(null, instance, null);
    } else {
      WeldCreationalContext<X> ctx = null;
      try {
        Object receiver = ContextualInstance.getIfExists(getDeclaringBean(), getBeanManager());
        if (receiver == null) {
          ctx = getBeanManager().createCreationalContext(null);
          // Create child CC so that a dependent reciever may be destroyed after the disposer method completes
          receiver = ContextualInstance.get(getDeclaringBean(), getBeanManager(), ctx.getCreationalContext(getDeclaringBean()));
        }
        if (receiver != null) {
          disposalMethod.invokeDisposeMethod(receiver, instance, ctx);
        }
      } finally {
        if (ctx != null) {
          ctx.release();
        }
      }
    }
  }
}

代码示例来源:origin: org.jboss.weld.se/weld-se-shaded

public void dispose(T instance) {
  if (disposalMethod != null) {
    // CreationalContext is only created if we need it to obtain the receiver
    // MethodInvocationStrategy takes care of creating CC for parameters, if needed
    if (disposalMethod.getAnnotated().isStatic()) {
      disposalMethod.invokeDisposeMethod(null, instance, null);
    } else {
      WeldCreationalContext<X> ctx = null;
      try {
        Object receiver = ContextualInstance.getIfExists(getDeclaringBean(), getBeanManager());
        if (receiver == null) {
          ctx = getBeanManager().createCreationalContext(null);
          // Create child CC so that a dependent reciever may be destroyed after the disposer method completes
          receiver = ContextualInstance.get(getDeclaringBean(), getBeanManager(), ctx.getCreationalContext(getDeclaringBean()));
        }
        if (receiver != null) {
          disposalMethod.invokeDisposeMethod(receiver, instance, ctx);
        }
      } finally {
        if (ctx != null) {
          ctx.release();
        }
      }
    }
  }
}

相关文章