Tabnine Logo
BeanDefinition.addSetInjectionPoint
Code IndexAdd Tabnine to your IDE (free)

How to use
addSetInjectionPoint
method
in
jodd.petite.BeanDefinition

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

origin: oblac/jodd

/**
 * Registers set injection point.
 *
 * @param beanName bean name
 * @param property set property name
 */
public void registerPetiteSetInjectionPoint(final String beanName, final String property) {
  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);
  }
  SetInjectionPoint sip = new SetInjectionPoint(propertyDescriptor);
  beanDefinition.addSetInjectionPoint(sip);
}
origin: org.jodd/jodd-wot

/**
 * Single point of property injection point registration.
 */
protected void registerPetiteSetInjectionPoint(String beanName, String property) {
  BeanDefinition beanDefinition = lookupExistingBeanDefinition(beanName);
  SetInjectionPoint sip = defineSetInjectionPoint(
      beanDefinition.type,
      property);
  beanDefinition.addSetInjectionPoint(sip);
}
origin: org.jodd/jodd-petite

/**
 * Registers set injection point.
 *
 * @param beanName bean name
 * @param property set property name
 */
public void registerPetiteSetInjectionPoint(final String beanName, final String property) {
  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);
  }
  SetInjectionPoint sip = new SetInjectionPoint(propertyDescriptor);
  beanDefinition.addSetInjectionPoint(sip);
}
jodd.petiteBeanDefinitionaddSetInjectionPoint

Javadoc

Adds set injection point.

Popular methods of BeanDefinition

  • name
    Returns bean name.
  • type
    Returns bean type.
  • <init>
  • addInitMethodPoints
    Adds init methods.
  • addMethodInjectionPoint
    Adds method injection point.
  • addPropertyInjectionPoint
    Adds property 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

  • Updating database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • putExtra (Intent)
  • notifyDataSetChanged (ArrayAdapter)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • From CI to AI: The AI layer in your organization
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