congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Reflections.cast
Code IndexAdd Tabnine to your IDE (free)

How to use
cast
method
in
org.jboss.weld.util.reflection.Reflections

Best Java code snippets using org.jboss.weld.util.reflection.Reflections.cast (Showing top 20 results out of 315)

Refine searchRefine arrow

  • InjectionPoint.getAnnotated
  • ServiceRegistry.get
origin: org.jboss.weld.se/weld-se

  @Override
  public AnnotatedParameter<X> getAnnotated() {
    return Reflections.cast(delegate().getAnnotated()); // checked in initializer
  }
}
origin: org.jboss.weld.se/weld-se

public static <T extends Service> void put(ServiceRegistry registry, Class<T> key, Service value) {
  Service previous = registry.get(key);
  if (previous == null) {
    BootstrapLogger.LOG.debugv("Installing additional service {0} ({1})", key.getName(), value.getClass());
    registry.add(key, Reflections.<T>cast(value));
  } else if (shouldOverride(key, previous, value)) {
    BootstrapLogger.LOG.debugv("Overriding service implementation for {0}. Previous implementation {1} is replaced with {2}", key.getName(),
        previous.getClass().getName(), value.getClass().getName());
    registry.add(key, Reflections.<T>cast(value));
  }
}
origin: weld/core

  @Override
  public AnnotatedParameter<X> getAnnotated() {
    return Reflections.cast(delegate().getAnnotated()); // checked in initializer
  }
}
origin: org.jboss.weld.se/weld-se

public DecorationHelper(TargetBeanInstance originalInstance, Bean<?> bean, Class<T> proxyClassForDecorator, BeanManagerImpl beanManager, ContextualStore contextualStore, List<Decorator<?>> decorators) {
  this.originalInstance = Reflections.<T>cast(originalInstance.getInstance());
  this.targetBeanInstance = originalInstance;
  this.beanManager = beanManager;
  this.contextualStore = contextualStore;
  this.decorators = new LinkedList<Decorator<?>>(decorators);
  this.proxyClassForDecorator = proxyClassForDecorator;
  this.bean = bean;
  this.instantiator = beanManager.getServices().get(ProxyInstantiator.class);
  counter = 0;
}
origin: weld/core

  @Override
  public AnnotatedParameter<X> getAnnotated() {
    return Reflections.cast(delegate().getAnnotated()); // checked in initializer
  }
}
origin: weld/core

public static <T extends Service> void put(ServiceRegistry registry, Class<T> key, Service value) {
  Service previous = registry.get(key);
  if (previous == null) {
    BootstrapLogger.LOG.debugv("Installing additional service {0} ({1})", key.getName(), value.getClass());
    registry.add(key, Reflections.cast(value));
  } else if (shouldOverride(key, previous, value)) {
    BootstrapLogger.LOG.debugv("Overriding service implementation for {0}. Previous implementation {1} is replaced with {2}", key.getName(),
        previous.getClass().getName(), value.getClass().getName());
    registry.add(key, Reflections.cast(value));
  }
}
origin: weld/core

  @Override
  public AnnotatedParameter<X> getAnnotated() {
    return Reflections.cast(delegate().getAnnotated()); // checked in initializer
  }
}
origin: weld/core

public DecorationHelper(TargetBeanInstance originalInstance, Bean<?> bean, Class<T> proxyClassForDecorator, BeanManagerImpl beanManager, ContextualStore contextualStore, List<Decorator<?>> decorators) {
  this.originalInstance = Reflections.<T>cast(originalInstance.getInstance());
  this.targetBeanInstance = originalInstance;
  this.beanManager = beanManager;
  this.contextualStore = contextualStore;
  this.decorators = new LinkedList<Decorator<?>>(decorators);
  this.proxyClassForDecorator = proxyClassForDecorator;
  this.bean = bean;
  this.instantiator = beanManager.getServices().get(ProxyInstantiator.class);
  counter = 0;
}
origin: org.jboss.weld.se/weld-se-shaded

  @Override
  public AnnotatedParameter<X> getAnnotated() {
    return Reflections.cast(delegate().getAnnotated()); // checked in initializer
  }
}
origin: weld/core

public DecorationHelper(TargetBeanInstance originalInstance, Bean<?> bean, Class<T> proxyClassForDecorator, BeanManagerImpl beanManager, ContextualStore contextualStore, List<Decorator<?>> decorators) {
  this.originalInstance = Reflections.<T>cast(originalInstance.getInstance());
  this.targetBeanInstance = originalInstance;
  this.beanManager = beanManager;
  this.contextualStore = contextualStore;
  this.decorators = new LinkedList<Decorator<?>>(decorators);
  this.proxyClassForDecorator = proxyClassForDecorator;
  this.bean = bean;
  this.instantiator = beanManager.getServices().get(ProxyInstantiator.class);
  counter = 0;
}
origin: org.jboss.weld.servlet/weld-servlet-shaded

  @Override
  public AnnotatedParameter<X> getAnnotated() {
    return Reflections.cast(delegate().getAnnotated()); // checked in initializer
  }
}
origin: weld/core

public static <T extends Service> void put(ServiceRegistry registry, Class<T> key, Service value) {
  Service previous = registry.get(key);
  if (previous == null) {
    BootstrapLogger.LOG.debugv("Installing additional service {0} ({1})", key.getName(), value.getClass());
    registry.add(key, Reflections.cast(value));
  } else if (shouldOverride(key, previous, value)) {
    BootstrapLogger.LOG.debugv("Overriding service implementation for {0}. Previous implementation {1} is replaced with {2}", key.getName(),
        previous.getClass().getName(), value.getClass().getName());
    registry.add(key, Reflections.cast(value));
  }
}
origin: org.jboss.weld.se/weld-se

@Override
public AnnotatedField<X> getAnnotated() {
  return Reflections.cast(delegate().getAnnotated()); // checked in initializer
}
origin: weld/core

public DecorationHelper(TargetBeanInstance originalInstance, Bean<?> bean, Class<T> proxyClassForDecorator, BeanManagerImpl beanManager, ContextualStore contextualStore, List<Decorator<?>> decorators) {
  this.originalInstance = Reflections.<T>cast(originalInstance.getInstance());
  this.targetBeanInstance = originalInstance;
  this.beanManager = beanManager;
  this.contextualStore = contextualStore;
  this.decorators = new LinkedList<Decorator<?>>(decorators);
  this.proxyClassForDecorator = proxyClassForDecorator;
  this.bean = bean;
  this.instantiator = beanManager.getServices().get(ProxyInstantiator.class);
  counter = 0;
}
origin: org.jboss.weld.se/weld-se

public static <T, X> ForwardingParameterInjectionPointAttributes<T, X> of(InjectionPoint ip) {
  if (ip instanceof ForwardingParameterInjectionPointAttributes<?, ?>) {
    return Reflections.cast(ip);
  }
  if (!(ip.getAnnotated() instanceof AnnotatedParameter<?>)) {
    throw BeanLogger.LOG.invalidInjectionPointType(ForwardingParameterInjectionPointAttributes.class, ip.getAnnotated());
  }
  return new ForwardingParameterInjectionPointAttributes<T, X>(ip);
}
origin: weld/core

public static <T extends Service> void put(ServiceRegistry registry, Class<T> key, Service value) {
  Service previous = registry.get(key);
  if (previous == null) {
    BootstrapLogger.LOG.debugv("Installing additional service {0} ({1})", key.getName(), value.getClass());
    registry.add(key, Reflections.cast(value));
  } else if (shouldOverride(key, previous, value)) {
    BootstrapLogger.LOG.debugv("Overriding service implementation for {0}. Previous implementation {1} is replaced with {2}", key.getName(),
        previous.getClass().getName(), value.getClass().getName());
    registry.add(key, Reflections.cast(value));
  }
}
origin: weld/core

public static <T, X> ForwardingParameterInjectionPointAttributes<T, X> of(InjectionPoint ip) {
  if (ip instanceof ForwardingParameterInjectionPointAttributes<?, ?>) {
    return Reflections.cast(ip);
  }
  if (!(ip.getAnnotated() instanceof AnnotatedParameter<?>)) {
    throw BeanLogger.LOG.invalidInjectionPointType(ForwardingParameterInjectionPointAttributes.class, ip.getAnnotated());
  }
  return new ForwardingParameterInjectionPointAttributes<T, X>(ip);
}
origin: org.jboss.weld.se/weld-se-shaded

public DecorationHelper(TargetBeanInstance originalInstance, Bean<?> bean, Class<T> proxyClassForDecorator, BeanManagerImpl beanManager, ContextualStore contextualStore, List<Decorator<?>> decorators) {
  this.originalInstance = Reflections.<T>cast(originalInstance.getInstance());
  this.targetBeanInstance = originalInstance;
  this.beanManager = beanManager;
  this.contextualStore = contextualStore;
  this.decorators = new LinkedList<Decorator<?>>(decorators);
  this.proxyClassForDecorator = proxyClassForDecorator;
  this.bean = bean;
  this.instantiator = beanManager.getServices().get(ProxyInstantiator.class);
  counter = 0;
}
origin: weld/core

public static <T, X> ForwardingParameterInjectionPointAttributes<T, X> of(InjectionPoint ip) {
  if (ip instanceof ForwardingParameterInjectionPointAttributes<?, ?>) {
    return Reflections.cast(ip);
  }
  if (!(ip.getAnnotated() instanceof AnnotatedParameter<?>)) {
    throw BeanLogger.LOG.invalidInjectionPointType(ForwardingParameterInjectionPointAttributes.class, ip.getAnnotated());
  }
  return new ForwardingParameterInjectionPointAttributes<T, X>(ip);
}
origin: org.jboss.weld.se/weld-se-shaded

public static <T extends Service> void put(ServiceRegistry registry, Class<T> key, Service value) {
  Service previous = registry.get(key);
  if (previous == null) {
    BootstrapLogger.LOG.debugv("Installing additional service {0} ({1})", key.getName(), value.getClass());
    registry.add(key, Reflections.cast(value));
  } else if (shouldOverride(key, previous, value)) {
    BootstrapLogger.LOG.debugv("Overriding service implementation for {0}. Previous implementation {1} is replaced with {2}", key.getName(),
        previous.getClass().getName(), value.getClass().getName());
    registry.add(key, Reflections.cast(value));
  }
}
org.jboss.weld.util.reflectionReflectionscast

Popular methods of Reflections

  • getRawType
  • loadClass
    Tries to load a class using the specified ResourceLoader. Returns null if the class is not found.
  • getInterfaceClosure
  • invokeAndUnwrap
    Invokes the method on a given instance passing in given parameters. If the invocation yields Invocat
  • isClassLoadable
  • isTopLevelOrStaticNestedClass
  • isUnboundedTypeVariable
  • isUnboundedWildcard
  • addInterfaces
  • buildTypeMap
  • containsWildcards
  • getActualTypeArguments
    Gets the actual type arguments of a Type
  • containsWildcards,
  • getActualTypeArguments,
  • getBound,
  • getNesting,
  • getNonPrivateNonStaticFinalMethod,
  • getPropertyName,
  • isAbstract,
  • isArrayType,
  • isCacheable

Popular in Java

  • Running tasks concurrently on multiple threads
  • onRequestPermissionsResult (Fragment)
  • getSupportFragmentManager (FragmentActivity)
  • setScale (BigDecimal)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now