Examples of lazy()


Examples of com.dp4j.Singleton.lazy()

            msgr.printMessage(Kind.ERROR, "the instance field must be of type " + enclosingClass, e);
        }

        final Singleton singletonAnn = singleton.getAnnotation(Singleton.class);
        if (singletonAnn == null) {
            if (singletonAnn.lazy()) {
                VariableTree tree = (VariableTree) trees.getTree(e);
                ExpressionTree initializer = tree.getInitializer();
                if (initializer != null) {
                    msgr.printMessage(Kind.ERROR, "For lazy Singleton initialization you must not inline initialize " + e.getSimpleName(), e);
                }
View Full Code Here

Examples of com.github.jmkgreen.morphia.annotations.Reference.lazy()

    @Override
    protected void check(MappedClass mc, MappedField mf, Set<ConstraintViolation> ve) {
        Reference ref = mf.getAnnotation(Reference.class);
        if (ref != null) {
            if (ref.lazy()) {
                if (!LazyFeatureDependencies.testDependencyFullFilled())
                    ve.add(new ConstraintViolation(Level.SEVERE, mc, mf, this.getClass(),
                            "Lazy references need CGLib and Proxytoys in the classpath."));
            }
        }
View Full Code Here

Examples of com.github.jmkgreen.morphia.annotations.Reference.lazy()

public class LazyReferenceOnArray extends FieldConstraint {

    @Override
    protected void check(MappedClass mc, MappedField mf, Set<ConstraintViolation> ve) {
        Reference ref = mf.getAnnotation(Reference.class);
        if (ref != null && ref.lazy()) {
            Class type = mf.getType();
            if (type.isArray())
                ve.add(new ConstraintViolation(Level.FATAL, mc, mf, this.getClass(),
                        "The lazy attribute cannot be used for an Array. If you need a lazy array please use ArrayList instead."));
        }
View Full Code Here

Examples of org.cruxframework.crux.core.client.controller.Controller.lazy()

   * @throws CruxGeneratorException
   */
  private boolean isControllerLazy(JClassType controllerClass) throws CruxGeneratorException
    {
    Controller controllerAnnot = controllerClass.getAnnotation(Controller.class);
        return (controllerAnnot == null || controllerAnnot.lazy());
    }
 
  /**
   * @param controllerClass
   * @return true if this controller can be loaded in lazy mode
View Full Code Here

Examples of org.jboss.capedwarf.jpa.ProxyingWrapper.lazy()

    private EntityManagerFactory getFactory(EMFInfo info) {
        if (emf == null) {
            synchronized (this) {
                if (emf == null) {
                    ProxyingWrapper wrapper = info.getWrapper();
                    EntityManagerFactory delegate = wrapper.lazy(info.getUnitName());
                    EntityManagerProvider provider = new CurrentEntityManagerProvider(delegate, info.getEmInjector());
                    emf = wrapper.wrap(delegate, provider);
                }
            }
        }
View Full Code Here

Examples of org.mongodb.morphia.annotations.Reference.lazy()

  @Override
  protected void check(final MappedClass mc, final MappedField mf, final Set<ConstraintViolation> ve) {
    final Reference ref = mf.getAnnotation(Reference.class);
    if (ref != null) {
      if (ref.lazy()) {
        if (!LazyFeatureDependencies.testDependencyFullFilled()) {
          ve.add(new ConstraintViolation(Level.SEVERE, mc, mf, getClass(),
            "Lazy references need CGLib and Proxytoys in the classpath."));
        }
      }
View Full Code Here

Examples of org.mongodb.morphia.annotations.Reference.lazy()

public class LazyReferenceOnArray extends FieldConstraint {

  @Override
  protected void check(final MappedClass mc, final MappedField mf, final Set<ConstraintViolation> ve) {
    final Reference ref = mf.getAnnotation(Reference.class);
    if (ref != null && ref.lazy()) {
      final Class type = mf.getType();
      if (type.isArray()) {
        ve.add(new ConstraintViolation(Level.FATAL, mc, mf, getClass(),
          "The lazy attribute cannot be used for an Array. If you need a lazy array please use ArrayList instead."));
      }
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.