Class JerseyTwofoldInstantiator<T>

  • Type Parameters:
    T - the class of the instantiator.
    All Implemented Interfaces:
    org.jboss.weld.injection.producer.Instantiator<T>

    public class JerseyTwofoldInstantiator<T>
    extends org.jboss.weld.injection.producer.AbstractInstantiator<T>
    An implementation of an instantiator capable of instantiating different instance for the client and server side.
    • Method Detail

      • getConstructorInjectionPoint

        public org.jboss.weld.injection.ConstructorInjectionPoint<T> getConstructorInjectionPoint()
        Specified by:
        getConstructorInjectionPoint in class org.jboss.weld.injection.producer.AbstractInstantiator<T>
      • hasInterceptorSupport

        public boolean hasInterceptorSupport()
      • hasDecoratorSupport

        public boolean hasDecoratorSupport()
      • newInstance

        public T newInstance​(jakarta.enterprise.context.spi.CreationalContext<T> ctx,
                             org.jboss.weld.manager.BeanManagerImpl manager)
        Specified by:
        newInstance in interface org.jboss.weld.injection.producer.Instantiator<T>
        Overrides:
        newInstance in class org.jboss.weld.injection.producer.AbstractInstantiator<T>
      • setOptionalConstructorInjectionPoint

        public void setOptionalConstructorInjectionPoint​(org.jboss.weld.injection.ConstructorInjectionPoint<T> optionalConstructorInjectionPoint)
        Set the optional constuctor injection point for the client side instantiation.
        Parameters:
        optionalConstructorInjectionPoint - The optional constructor injection point.