Codota Logo
BeanDefinition.<init>
Code IndexAdd Codota 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)

  • Common ways to obtain BeanDefinition
private void myMethod () {
BeanDefinition b =
  • Codota IconPetiteContainer petiteContainer;petiteContainer.createBeanDefinitionForRegistration(name, type, scope, wiringMode, consumer)
  • Smart code suggestions by Codota
}
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

  • Making http requests using okhttp
  • getApplicationContext (Context)
  • putExtra (Intent)
  • startActivity (Activity)
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate(i
  • MessageFormat (java.text)
    MessageFormat provides a means to produce concatenated messages in language-neutral way. Use this to
  • TimerTask (java.util)
    A task that can be scheduled for one-time or repeated execution by a Timer.
  • ExecutorService (java.util.concurrent)
    An Executor that provides methods to manage termination and methods that can produce a Future for tr
  • JCheckBox (javax.swing)
  • LogFactory (org.apache.commons.logging)
    A minimal incarnation of Apache Commons Logging's LogFactory API, providing just the common Log look
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now