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

Best code snippets using org.apache.cxf.common.injection.ResourceInjector.inject(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.tomee/openejb-cxf

private ResourceInjector injectCxfResources(final Object implementor) {
  ResourceManager resourceManager = bus.getExtension(ResourceManager.class);
  final List<ResourceResolver> resolvers = resourceManager.getResourceResolvers();
  resourceManager = new DefaultResourceManager(resolvers);
  if (!resourceManager.getResourceResolvers().contains(WEB_SERVICE_CONTEXT_RESOURCE_RESOLVER)) {
    resourceManager.addResourceResolver(WEB_SERVICE_CONTEXT_RESOURCE_RESOLVER);
  }
  final ResourceInjector injector = new ResourceInjector(resourceManager);
  injector.inject(implementor);
  return injector;
}
origin: org.apache.cxf/cxf-api

public void inject(Object o) {        
  inject(o, o.getClass());
}

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-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

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-bundle-jaxrs

public void inject(Object o) {        
  inject(o, o.getClass());
}

origin: org.apache.cxf/cxf-core

public void inject(Object o) {
  inject(o, o.getClass());
}
origin: apache/cxf

public void inject(Object o) {
  inject(o, o.getClass());
}
origin: org.apache.cxf/cxf-bundle

public void inject(Object o) {        
  inject(o, o.getClass());
}

origin: org.apache.cxf/cxf-common-utilities

public void inject(Object o) {        
  inject(o, o.getClass());
}

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

public void inject(Object o) {        
  inject(o, o.getClass());
}

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.injectionResourceInjectorinject

Popular methods of ResourceInjector

  • <init>
  • construct
  • 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)