congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
BeanDefinition.addPropertyInjectionPoint
Code IndexAdd Tabnine to your IDE (free)

How to use
addPropertyInjectionPoint
method
in
jodd.petite.BeanDefinition

Best Java code snippets using jodd.petite.BeanDefinition.addPropertyInjectionPoint (Showing top 3 results out of 315)

origin: oblac/jodd

/**
 * Registers property injection point.
 *
 * @param beanName bean name
 * @param property property name
 * @param reference explicit injection reference, may be <code>null</code>
 */
public void registerPetitePropertyInjectionPoint(final String beanName, final String property, final String reference) {
  BeanDefinition beanDefinition = lookupExistingBeanDefinition(beanName);
  ClassDescriptor cd = ClassIntrospector.get().lookup(beanDefinition.type);
  PropertyDescriptor propertyDescriptor = cd.getPropertyDescriptor(property, true);
  if (propertyDescriptor == null) {
    throw new PetiteException("Property not found: " + beanDefinition.type.getName() + '#' + property);
  }
  BeanReferences ref = referencesResolver.resolveReferenceFromValue(propertyDescriptor, reference);
  PropertyInjectionPoint pip = new PropertyInjectionPoint(propertyDescriptor, ref);
  beanDefinition.addPropertyInjectionPoint(pip);
}
origin: org.jodd/jodd-wot

/**
 * Single point of property injection point registration.
 */
protected void registerPetitePropertyInjectionPoint(String beanName, String property, String reference) {
  BeanDefinition beanDefinition = lookupExistingBeanDefinition(beanName);
  PropertyInjectionPoint pip = definePropertyInjectionPoint(
      beanDefinition.type,
      property,
      reference == null ? null : new String[] {reference});
  beanDefinition.addPropertyInjectionPoint(pip);
}
origin: org.jodd/jodd-petite

/**
 * Registers property injection point.
 *
 * @param beanName bean name
 * @param property property name
 * @param reference explicit injection reference, may be <code>null</code>
 */
public void registerPetitePropertyInjectionPoint(final String beanName, final String property, final String reference) {
  BeanDefinition beanDefinition = lookupExistingBeanDefinition(beanName);
  ClassDescriptor cd = ClassIntrospector.get().lookup(beanDefinition.type);
  PropertyDescriptor propertyDescriptor = cd.getPropertyDescriptor(property, true);
  if (propertyDescriptor == null) {
    throw new PetiteException("Property not found: " + beanDefinition.type.getName() + '#' + property);
  }
  BeanReferences ref = referencesResolver.resolveReferenceFromValue(propertyDescriptor, reference);
  PropertyInjectionPoint pip = new PropertyInjectionPoint(propertyDescriptor, ref);
  beanDefinition.addPropertyInjectionPoint(pip);
}
jodd.petiteBeanDefinitionaddPropertyInjectionPoint

Javadoc

Adds property injection point.

Popular methods of BeanDefinition

  • name
    Returns bean name.
  • type
    Returns bean type.
  • <init>
  • addInitMethodPoints
    Adds init methods.
  • addMethodInjectionPoint
    Adds method injection point.
  • addSetInjectionPoint
    Adds set injection point.
  • scopeLookup
    Delegates to jodd.petite.scope.Scope#lookup(String).
  • scopeRegister
    Delegates to jodd.petite.scope.Scope#register(jodd.petite.BeanDefinition,Object)if scope is defined.
  • scopeRemove
    Delegates to jodd.petite.scope.Scope#remove(String).
  • addDestroyMethodPoints
    Adds destroy methods.
  • consumer
    Returns an optional consumer.
  • destroyMethodPoints
    Returns destroy method points.
  • consumer,
  • destroyMethodPoints,
  • initMethodPoints,
  • scope

Popular in Java

  • Start an intent from android
  • runOnUiThread (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • getSharedPreferences (Context)
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Top 17 PhpStorm Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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