congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
BeanDefinition.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
jodd.petite.BeanDefinition
constructor

Best Java code snippets using jodd.petite.BeanDefinition.<init> (Showing top 7 results out of 315)

origin: oblac/jodd

/**
 * Creates {@link jodd.petite.BeanDefinition} on
 * {@link #registerPetiteBean(Class, String, Class, WiringMode, boolean, Consumer) bean registration}.
 * This is a hook for modifying the bean data, like passing proxifed class etc.
 * By default returns new instance of {@link jodd.petite.BeanDefinition}.
 */
protected <T> BeanDefinition createBeanDefinitionForRegistration(
    final String name,
    final Class<T> type,
    final Scope scope,
    final WiringMode wiringMode,
    final Consumer<T> consumer) {
  return new BeanDefinition<>(name, type, scope, wiringMode, consumer);
}
origin: oblac/jodd

/**
 * Creates {@link jodd.petite.BeanDefinition} for all external beans.
 */
protected <T> BeanDefinition createBeandDefinitionForExternalBeans(
    final Class<T> type,
    final WiringMode wiringMode) {
  final String name = resolveBeanName(type);
  return new BeanDefinition<>(name, type, null, wiringMode, null);
}
origin: org.jodd/jodd-petite

/**
 * Creates {@link jodd.petite.BeanDefinition} on
 * {@link #registerPetiteBean(Class, String, Class, WiringMode, boolean, Consumer) bean registration}.
 * This is a hook for modifying the bean data, like passing proxifed class etc.
 * By default returns new instance of {@link jodd.petite.BeanDefinition}.
 */
protected <T> BeanDefinition createBeanDefinitionForRegistration(
    final String name,
    final Class<T> type,
    final Scope scope,
    final WiringMode wiringMode,
    final Consumer<T> consumer) {
  return new BeanDefinition<>(name, type, scope, wiringMode, consumer);
}
origin: org.jodd/jodd-petite

/**
 * Creates {@link jodd.petite.BeanDefinition} for all external beans.
 */
protected <T> BeanDefinition createBeandDefinitionForExternalBeans(
    final Class<T> type,
    final WiringMode wiringMode) {
  final String name = resolveBeanName(type);
  return new BeanDefinition<>(name, type, null, wiringMode, null);
}
origin: org.jodd/jodd-wot

/**
 * Wires provided bean with the container and optionally invokes init methods.
 * Bean is not registered.
 */
public void wire(Object bean, WiringMode wiringMode, boolean init) {
  wiringMode = petiteConfig.resolveWiringMode(wiringMode);
  BeanDefinition def = new BeanDefinition(null, bean.getClass(), null, wiringMode);
  wireBean(bean, def, new HashMap<String, Object>());
  if (init) {
    invokeInitMethods(bean,  def, null);
  }
}
origin: org.jodd/jodd-wot

/**
 * Creates and wires a bean within the container and optionally invokes init methods. However, bean is
 * <b>not</b> registered.
 */
@SuppressWarnings({"unchecked"})
public <E> E createBean(Class<E> type, WiringMode wiringMode, boolean init) {
  wiringMode = petiteConfig.resolveWiringMode(wiringMode);
  BeanDefinition def = new BeanDefinition(null, type, null, wiringMode);
  Map<String, Object> acquiredBeans = new HashMap<String, Object>();
  Object bean = newBeanInstance(def, acquiredBeans);
  wireBean(bean, def, acquiredBeans);
  if (init) {
    invokeInitMethods(bean, def, null);
  }
  return (E) bean;
}
origin: org.jodd/jodd-wot

BeanDefinition beanDefinition = new BeanDefinition(name, type, scope, wiringMode);
beans.put(name, beanDefinition);
return beanDefinition;
jodd.petiteBeanDefinition<init>

Popular methods of BeanDefinition

  • name
    Returns bean name.
  • type
    Returns bean type.
  • addInitMethodPoints
    Adds init methods.
  • 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

  • Running tasks concurrently on multiple threads
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • requestLocationUpdates (LocationManager)
  • addToBackStack (FragmentTransaction)
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • 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