Package jodd.petite.meta

Examples of jodd.petite.meta.PetiteBean.scope()


   * Resolves bean's scope type from the annotation. Returns <code>null</code>
   * if annotation doesn't exist.
   */
  public static Class<? extends Scope> resolveBeanScopeType(Class type) {
    PetiteBean petiteBean = ((Class<?>) type).getAnnotation(PetiteBean.class);
    return petiteBean != null ? petiteBean.scope() : null;
  }

  /**
   * Resolves bean's name from bean annotation or type name. May be used for resolving bean name
   * of base type during registration of bean subclass.
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.