Package com.avaje.ebeaninternal.server.type.reflect

Examples of com.avaje.ebeaninternal.server.type.reflect.CheckImmutableResponse


    BootupClasses bootupClasses = new BootupClasses();

    DefaultTypeManager typeManager = new DefaultTypeManager(serverConfig, bootupClasses);

    CheckImmutableResponse checkImmutable = typeManager.checkImmutable(Money.class);
    Assert.assertTrue(checkImmutable.isImmutable());

    checkImmutable = typeManager.checkImmutable(CMoney.class);
    Assert.assertTrue(checkImmutable.isImmutable());

    ScalarDataReader<?> dataReader = typeManager
        .recursiveCreateScalarDataReader(ExhangeCMoneyRate.class);
    Assert.assertTrue(dataReader instanceof CtCompoundType<?>);
View Full Code Here


    SimpleKnownImmutable known = new SimpleKnownImmutable();

    CheckImmutable check = new CheckImmutable(known);

    CheckImmutableResponse response = check.checkImmutable(Money.class);

    Assert.assertTrue(response.isImmutable());
    Assert.assertTrue(!response.isCompoundType());
  }
View Full Code Here

    if (isTransientField(field)) {
      return null;
    }
    try {
      CheckImmutableResponse checkImmutable = typeManager.checkImmutable(innerType);
      if (checkImmutable.isImmutable()) {
        if (checkImmutable.isCompoundType()) {
          // use reflection to support compound immutable value objects
          typeManager.recursiveCreateScalarDataReader(innerType);
          compoundType = typeManager.getCompoundType(innerType);
          if (compoundType != null) {
            return new DeployBeanPropertyCompound(desc, propertyType, compoundType, null);
View Full Code Here

TOP

Related Classes of com.avaje.ebeaninternal.server.type.reflect.CheckImmutableResponse

Copyright © 2018 www.massapicom. 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.