ResourceInjector.construct
Code IndexAdd Codota to your IDE (free)

Best code snippets using org.apache.cxf.common.injection.ResourceInjector.construct(Showing top 15 results out of 315)

  • Common ways to obtain ResourceInjector
private void myMethod () {
ResourceInjector r =
  • ResourceManager resMgr;new ResourceInjector(resMgr)
  • Smart code suggestions by Codota
}
origin: org.apache.cxf/cxf-rt-frontend-jaxws

private void initializeViaInjection(Handler<?> handler, final Map<String, String> params) {
  if (bus != null) {
    ResourceManager resMgr = bus.getExtension(ResourceManager.class);
    List<ResourceResolver> resolvers = resMgr.getResourceResolvers();
    resolvers.add(new InitParamResourceResolver(params));
    ResourceInjector resInj = new ResourceInjector(resMgr, resolvers);
    resInj.inject(handler);
    resInj.construct(handler);
  }
}
origin: org.apache.cxf/cxf-core

public Object postProcessAfterInitialization(Object bean, String beanId) throws BeansException {
  if (!isProcessing) {
    if (resourceManager == null && bean instanceof ResourceManager) {
      resourceManager = (ResourceManager)bean;
      resourceManager.addResourceResolver(new BusApplicationContextResourceResolver(context));
    }
    return bean;
  }
  if (bean != null
    && injectable(bean, beanId)) {
    new ResourceInjector(getResourceManager(bean)).construct(bean);
  }
  return bean;
}
origin: org.apache.cxf/cxf-rt-frontend-jaxws

  /**
   * JAX-WS section 9.3.1: The runtime MUST then carry out any injections
   * requested by the handler, typically via the javax .annotation.Resource
   * annotation. After all the injections have been carried out, including in
   * the case where no injections were requested, the runtime MUST invoke the
   * method carrying a javax.annotation .PostConstruct annotation, if present.
   */
  private void configHandler(Handler<?> handler) {
    if (handler != null) {
      ResourceManager resourceManager = bus.getExtension(ResourceManager.class);
      ResourceInjector injector = new ResourceInjector(resourceManager);
      injector.inject(handler);
      injector.construct(handler);
    }

  }
}
origin: org.apache.cxf/cxf-bundle-minimal

  /**
   * JAX-WS section 9.3.1: The runtime MUST then carry out any injections
   * requested by the handler, typically via the javax .annotation.Resource
   * annotation. After all the injections have been carried out, including in
   * the case where no injections were requested, the runtime MUST invoke the
   * method carrying a javax.annotation .PostConstruct annotation, if present.
   */
  private void configHandler(Handler<?> handler) {
    if (handler != null) {
      ResourceManager resourceManager = bus.getExtension(ResourceManager.class);
      List<ResourceResolver> resolvers = resourceManager.getResourceResolvers();
      resourceManager = new DefaultResourceManager(resolvers);
//            resourceManager.addResourceResolver(new WebContextEntriesResourceResolver());
      ResourceInjector injector = new ResourceInjector(resourceManager);
      injector.inject(handler);
      injector.construct(handler);
    }

  }
}
origin: org.apache.cxf/cxf-bundle

private void initializeViaInjection(Handler<?> handler, final Map<String, String> params) {
  if (bus != null) {
    ResourceManager resMgr = bus.getExtension(ResourceManager.class);
    List<ResourceResolver> resolvers = resMgr.getResourceResolvers();
    resolvers.add(new InitParamResourceResolver(params));
    ResourceInjector resInj = new ResourceInjector(resMgr, resolvers);
    resInj.inject(handler);
    resInj.construct(handler);
  }
}
origin: org.apache.cxf/cxf-bundle-minimal

private void initializeViaInjection(Handler<?> handler, final Map<String, String> params) {
  if (bus != null) {
    ResourceManager resMgr = bus.getExtension(ResourceManager.class);
    List<ResourceResolver> resolvers = resMgr.getResourceResolvers();
    resolvers.add(new InitParamResourceResolver(params));
    ResourceInjector resInj = new ResourceInjector(resMgr, resolvers);
    resInj.inject(handler);
    resInj.construct(handler);
  }
}
origin: apache/cxf

private void initializeViaInjection(Handler<?> handler, final Map<String, String> params) {
  if (bus != null) {
    ResourceManager resMgr = bus.getExtension(ResourceManager.class);
    List<ResourceResolver> resolvers = resMgr.getResourceResolvers();
    resolvers.add(new InitParamResourceResolver(params));
    ResourceInjector resInj = new ResourceInjector(resMgr, resolvers);
    resInj.inject(handler);
    resInj.construct(handler);
  }
}
origin: org.apache.cxf/cxf-core

public Object postProcessAfterInitialization(Object bean, String beanId) throws BeansException {
  if (!isProcessing) {
    if (resourceManager == null && bean instanceof ResourceManager) {
      resourceManager = (ResourceManager)bean;
      resourceManager.addResourceResolver(new BusApplicationContextResourceResolver(context));
    }
    return bean;
  }
  if (bean != null
    && injectable(bean, beanId)) {
    new ResourceInjector(getResourceManager(bean)).construct(bean);
  }
  return bean;
}
origin: org.apache.cxf/cxf-rt-core

public Object postProcessAfterInitialization(Object bean, String beanId) throws BeansException {
  if (!isProcessing) {
    if (resourceManager == null && bean instanceof ResourceManager) {
      resourceManager = (ResourceManager)bean;
      resourceManager.addResourceResolver(new BusApplicationContextResourceResolver(context));
    }
    return bean;
  }
  if (bean != null 
    && injectable(bean, beanId)) {
    new ResourceInjector(getResourceManager(bean)).construct(bean);
  }
  return bean;
}
origin: org.apache.cxf/cxf-bundle-minimal

public Object postProcessAfterInitialization(Object bean, String beanId) throws BeansException {
  if (!isProcessing) {
    if (resourceManager == null && bean instanceof ResourceManager) {
      resourceManager = (ResourceManager)bean;
      resourceManager.addResourceResolver(new BusApplicationContextResourceResolver(context));
    }
    return bean;
  }
  if (bean != null 
    && injectable(bean, beanId)) {
    new ResourceInjector(getResourceManager(bean)).construct(bean);
  }
  return bean;
}
origin: apache/cxf

public Object postProcessAfterInitialization(Object bean, String beanId) throws BeansException {
  if (!isProcessing) {
    if (resourceManager == null && bean instanceof ResourceManager) {
      resourceManager = (ResourceManager)bean;
      resourceManager.addResourceResolver(new BusApplicationContextResourceResolver(context));
    }
    return bean;
  }
  if (bean != null
    && injectable(bean, beanId)) {
    new ResourceInjector(getResourceManager(bean)).construct(bean);
  }
  return bean;
}
origin: org.apache.cxf/cxf-bundle

public Object postProcessAfterInitialization(Object bean, String beanId) throws BeansException {
  if (!isProcessing) {
    if (resourceManager == null && bean instanceof ResourceManager) {
      resourceManager = (ResourceManager)bean;
      resourceManager.addResourceResolver(new BusApplicationContextResourceResolver(context));
    }
    return bean;
  }
  if (bean != null 
    && injectable(bean, beanId)) {
    new ResourceInjector(getResourceManager(bean)).construct(bean);
  }
  return bean;
}
origin: org.apache.cxf/cxf-bundle-jaxrs

public Object postProcessAfterInitialization(Object bean, String beanId) throws BeansException {
  if (!isProcessing) {
    if (resourceManager == null && bean instanceof ResourceManager) {
      resourceManager = (ResourceManager)bean;
      resourceManager.addResourceResolver(new BusApplicationContextResourceResolver(context));
    }
    return bean;
  }
  if (bean != null 
    && injectable(bean, beanId)) {
    new ResourceInjector(getResourceManager(bean)).construct(bean);
  }
  return bean;
}
origin: org.apache.cxf/cxf-rt-frontend-jaxws

  /**
   * JAX-WS section 9.3.1: The runtime MUST then carry out any injections
   * requested by the handler, typically via the javax .annotation.Resource
   * annotation. After all the injections have been carried out, including in
   * the case where no injections were requested, the runtime MUST invoke the
   * method carrying a javax.annotation .PostConstruct annotation, if present.
   */
  private void configHandler(Handler<?> handler) {
    if (handler != null) {
      ResourceManager resourceManager = bus.getExtension(ResourceManager.class);
      ResourceInjector injector = new ResourceInjector(resourceManager);
      injector.inject(handler);
      injector.construct(handler);
    }

  }
}
origin: apache/cxf

  /**
   * JAX-WS section 9.3.1: The runtime MUST then carry out any injections
   * requested by the handler, typically via the javax .annotation.Resource
   * annotation. After all the injections have been carried out, including in
   * the case where no injections were requested, the runtime MUST invoke the
   * method carrying a javax.annotation .PostConstruct annotation, if present.
   */
  private void configHandler(Handler<?> handler) {
    if (handler != null) {
      ResourceManager resourceManager = bus.getExtension(ResourceManager.class);
      ResourceInjector injector = new ResourceInjector(resourceManager);
      injector.inject(handler);
      injector.construct(handler);
    }

  }
}
org.apache.cxf.common.injectionResourceInjectorconstruct

Popular methods of ResourceInjector

  • inject
  • <init>
  • invokePostConstruct
  • invokePreDestroy
  • processable
  • addAnnotatedMethods
  • findFieldForResource
  • findSetterForResource
  • getAnnotatedMethods
  • getField
  • getFieldNameForResource
  • getPostConstructMethods
  • getFieldNameForResource,
  • getPostConstructMethods,
  • getPreDestroyMethods,
  • getResourceName,
  • getResourceType,
  • getTarget,
  • getTargetClass,
  • injectField,
  • injectResourceClassLevel

Popular classes and methods

  • getApplicationContext (Context)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • setContentView (Activity)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • List (java.util)
    A List is a collection which maintains an ordering for its elements. Every element in the List has a
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.

For IntelliJ IDEA,
Android Studio or Eclipse

  • Codota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutContact Us
  • Terms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)