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

How to use
addInitMethodPoints
method
in
jodd.petite.BeanDefinition

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

origin: oblac/jodd

/**
 * Registers init method.
 *
 * @param beanName bean name
 * @param invocationStrategy moment of invocation
 * @param initMethodNames init method names
 */
public void registerPetiteInitMethods(final String beanName, final InitMethodInvocationStrategy invocationStrategy, String... initMethodNames) {
  BeanDefinition beanDefinition = lookupExistingBeanDefinition(beanName);
  ClassDescriptor cd = ClassIntrospector.get().lookup(beanDefinition.type);
  if (initMethodNames == null) {
    initMethodNames = StringPool.EMPTY_ARRAY;
  }
  int total = initMethodNames.length;
  InitMethodPoint[] initMethodPoints = new InitMethodPoint[total];
  int i;
  for (i = 0; i < initMethodNames.length; i++) {
    MethodDescriptor md = cd.getMethodDescriptor(initMethodNames[i], ClassUtil.EMPTY_CLASS_ARRAY, true);
    if (md == null) {
      throw new PetiteException("Init method not found: " + beanDefinition.type.getName() + '#' + initMethodNames[i]);
    }
    initMethodPoints[i] = new InitMethodPoint(md.getMethod(), i, invocationStrategy);
  }
  beanDefinition.addInitMethodPoints(initMethodPoints);
}
origin: org.jodd/jodd-wot

/**
 * Single point of init method registration.
 */
protected void registerPetiteInitMethods(String beanName, String[] beforeMethodNames, String[] afterMethodNames) {
  BeanDefinition beanDefinition = lookupExistingBeanDefinition(beanName);
  InitMethodPoint[] methods = defineInitMethods(beanDefinition.type, beforeMethodNames, afterMethodNames);
  beanDefinition.addInitMethodPoints(methods);
}
origin: org.jodd/jodd-petite

/**
 * Registers init method.
 *
 * @param beanName bean name
 * @param invocationStrategy moment of invocation
 * @param initMethodNames init method names
 */
public void registerPetiteInitMethods(final String beanName, final InitMethodInvocationStrategy invocationStrategy, String... initMethodNames) {
  BeanDefinition beanDefinition = lookupExistingBeanDefinition(beanName);
  ClassDescriptor cd = ClassIntrospector.get().lookup(beanDefinition.type);
  if (initMethodNames == null) {
    initMethodNames = StringPool.EMPTY_ARRAY;
  }
  int total = initMethodNames.length;
  InitMethodPoint[] initMethodPoints = new InitMethodPoint[total];
  int i;
  for (i = 0; i < initMethodNames.length; i++) {
    MethodDescriptor md = cd.getMethodDescriptor(initMethodNames[i], ClassUtil.EMPTY_CLASS_ARRAY, true);
    if (md == null) {
      throw new PetiteException("Init method not found: " + beanDefinition.type.getName() + '#' + initMethodNames[i]);
    }
    initMethodPoints[i] = new InitMethodPoint(md.getMethod(), i, invocationStrategy);
  }
  beanDefinition.addInitMethodPoints(initMethodPoints);
}
jodd.petiteBeanDefinitionaddInitMethodPoints

Javadoc

Adds init methods.

Popular methods of BeanDefinition

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

  • Creating JSON documents from java classes using gson
  • setContentView (Activity)
  • getApplicationContext (Context)
  • requestLocationUpdates (LocationManager)
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Runner (org.openjdk.jmh.runner)
  • Top Sublime Text plugins
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