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

How to use
ProviderDefinition
in
jodd.petite.def

Best Java code snippets using jodd.petite.def.ProviderDefinition (Showing top 6 results out of 315)

origin: oblac/jodd

  providerDefinition = new ProviderDefinition(providerName, method);
} else {
  providerDefinition = new ProviderDefinition(providerName, name, method);
origin: oblac/jodd

/**
 * Registers static method provider.
 *
 * @param providerName provider name
 * @param type class type
 * @param staticMethodName static method name
 * @param arguments method argument types
 */
public void registerPetiteProvider(final String providerName, final Class type, final String staticMethodName, final Class[] arguments) {
  ClassDescriptor cd = ClassIntrospector.get().lookup(type);
  MethodDescriptor md = cd.getMethodDescriptor(staticMethodName, arguments, true);
  if (md == null) {
    throw new PetiteException("Provider method not found: " + staticMethodName);
  }
  ProviderDefinition providerDefinition = new ProviderDefinition(providerName, md.getMethod());
  providers.put(providerName, providerDefinition);
}
origin: oblac/jodd

/**
 * Registers instance method provider.
 *
 * @param providerName provider name
 * @param beanName bean name
 * @param methodName instance method name
 * @param arguments method argument types
 */
public void registerPetiteProvider(final String providerName, final String beanName, final String methodName, final Class[] arguments) {
  BeanDefinition beanDefinition = lookupBeanDefinition(beanName);
  if (beanDefinition == null) {
    throw new PetiteException("Bean not found: " + beanName);
  }
  Class beanType = beanDefinition.type;
  ClassDescriptor cd = ClassIntrospector.get().lookup(beanType);
  MethodDescriptor md = cd.getMethodDescriptor(methodName, arguments, true);
  if (md == null) {
    throw new PetiteException("Provider method not found: " + methodName);
  }
  ProviderDefinition providerDefinition = new ProviderDefinition(providerName, beanName, md.getMethod());
  providers.put(providerName, providerDefinition);
}
origin: org.jodd/jodd-petite

  providerDefinition = new ProviderDefinition(providerName, method);
} else {
  providerDefinition = new ProviderDefinition(providerName, name, method);
origin: org.jodd/jodd-petite

/**
 * Registers static method provider.
 *
 * @param providerName provider name
 * @param type class type
 * @param staticMethodName static method name
 * @param arguments method argument types
 */
public void registerPetiteProvider(final String providerName, final Class type, final String staticMethodName, final Class[] arguments) {
  ClassDescriptor cd = ClassIntrospector.get().lookup(type);
  MethodDescriptor md = cd.getMethodDescriptor(staticMethodName, arguments, true);
  if (md == null) {
    throw new PetiteException("Provider method not found: " + staticMethodName);
  }
  ProviderDefinition providerDefinition = new ProviderDefinition(providerName, md.getMethod());
  providers.put(providerName, providerDefinition);
}
origin: org.jodd/jodd-petite

/**
 * Registers instance method provider.
 *
 * @param providerName provider name
 * @param beanName bean name
 * @param methodName instance method name
 * @param arguments method argument types
 */
public void registerPetiteProvider(final String providerName, final String beanName, final String methodName, final Class[] arguments) {
  BeanDefinition beanDefinition = lookupBeanDefinition(beanName);
  if (beanDefinition == null) {
    throw new PetiteException("Bean not found: " + beanName);
  }
  Class beanType = beanDefinition.type;
  ClassDescriptor cd = ClassIntrospector.get().lookup(beanType);
  MethodDescriptor md = cd.getMethodDescriptor(methodName, arguments, true);
  if (md == null) {
    throw new PetiteException("Provider method not found: " + methodName);
  }
  ProviderDefinition providerDefinition = new ProviderDefinition(providerName, beanName, md.getMethod());
  providers.put(providerName, providerDefinition);
}
jodd.petite.defProviderDefinition

Javadoc

Bean provider definition.

Most used methods

  • <init>

Popular in Java

  • Reactive rest calls using spring rest template
  • setContentView (Activity)
  • getApplicationContext (Context)
  • onCreateOptionsMenu (Activity)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • String (java.lang)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • 21 Best IntelliJ 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