Examples of instantiateAs()


Examples of org.freezedry.persistence.annotations.Persist.instantiateAs()

        final Persist annotation = field.getAnnotation( Persist.class );
        if( annotation != null )
        {
          // if no class information is stored in the node, or if the class stored in the
          // node is a super class of the instantiate type, then use the instantiate type
          final Class< ? > instantiateType = annotation.instantiateAs();
          if( !instantiateType.equals( Persist.Null.class ) )
          {
            final Class< ? > nodeClazz = node.getClazz();
            if( nodeClazz == null || ReflectionUtils.isClassOrSuperclass( nodeClazz, instantiateType ) )
            {
View Full Code Here

Examples of org.freezedry.persistence.annotations.Persist.instantiateAs()

        final Persist annotation = field.getAnnotation( Persist.class );
        if( annotation != null )
        {
          // if no class information is stored in the node, or if the class stored in the
          // node is a super class of the instantiate type, then use the instantiate type
          final Class< ? > instantiateType = annotation.instantiateAs();
          if( !instantiateType.equals( Persist.Null.class ) )
          {
            final Class< ? > nodeClazz = node.getClazz();
            if( nodeClazz == null || ReflectionUtils.isClassOrSuperclass( nodeClazz, instantiateType ) )
            {
View Full Code Here

Examples of org.freezedry.persistence.annotations.Persist.instantiateAs()

        final Persist annotation = field.getAnnotation( Persist.class );
        if( annotation != null )
        {
          // if no class information is stored in the node, or if the class stored in the
          // node is a super class of the instantiate type, then use the instantiate type
          final Class< ? > instantiateType = annotation.instantiateAs();
          if( !instantiateType.equals( Persist.Null.class ) )
          {
            final Class< ? > nodeClazz = node.getClazz();
            if( nodeClazz == null || ReflectionUtils.isClassOrSuperclass( nodeClazz, instantiateType ) )
            {
View Full Code Here

Examples of org.freezedry.persistence.annotations.Persist.instantiateAs()

        final Persist annotation = field.getAnnotation( Persist.class );
        if( annotation != null )
        {
          // if no class information is stored in the node, or if the class stored in the
          // node is a super class of the instantiate type, then use the instantiate type
          final Class< ? > instantiateType = annotation.instantiateAs();
          if( !instantiateType.equals( Persist.Null.class ) )
          {
            final Class< ? > nodeClazz = node.getClazz();
            if( nodeClazz == null || ReflectionUtils.isClassOrSuperclass( nodeClazz, instantiateType ) )
            {
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.