org.apache.jdo.impl.enhancer.meta.model
Class EnhancerJavaModel

java.lang.Object
  extended byorg.apache.jdo.impl.model.java.AbstractJavaModel
      extended byorg.apache.jdo.impl.model.java.reflection.ReflectionJavaModel
          extended byorg.apache.jdo.impl.enhancer.meta.model.EnhancerJavaModel
All Implemented Interfaces:
org.apache.jdo.model.java.JavaModel

public class EnhancerJavaModel
extends org.apache.jdo.impl.model.java.reflection.ReflectionJavaModel

Provides some basic Java type information based on JVM descriptors.

Author:
Michael Bouschen, Martin Zaun

Field Summary
 
Fields inherited from class org.apache.jdo.impl.model.java.reflection.ReflectionJavaModel
declaringJavaModelFactory
 
Fields inherited from class org.apache.jdo.impl.model.java.AbstractJavaModel
children, jdoModel, parent, types
 
Constructor Summary
EnhancerJavaModel(java.lang.ClassLoader classLoader, ResourceLocator locator)
          Creates an instance.
 
Method Summary
protected static void affirm(boolean condition, java.lang.String msg)
           
 java.io.InputStream getInputStreamForResource(java.lang.String resourceName)
          Finds a resource with a given name.
 java.lang.String getTypeName(java.lang.String sig)
          Returns the fully qualified name of the specified type representation.
protected  org.apache.jdo.model.java.JavaType newJavaTypeInstance(java.lang.Class clazz)
          Creates a new JavaType instance for the specified Class object.
 
Methods inherited from class org.apache.jdo.impl.model.java.reflection.ReflectionJavaModel
getClassLoader, getDeclaringJavaModelFactory, getJavaType, getJavaType, getJDOModel
 
Methods inherited from class org.apache.jdo.impl.model.java.AbstractJavaModel
getChildren, getParent, setJDOModel, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnhancerJavaModel

public EnhancerJavaModel(java.lang.ClassLoader classLoader,
                         ResourceLocator locator)
Creates an instance.

Method Detail

getInputStreamForResource

public java.io.InputStream getInputStreamForResource(java.lang.String resourceName)
Finds a resource with a given name. This method returns null if no resource with this name is found. The name of a resource is a "/"-separated path name.


newJavaTypeInstance

protected org.apache.jdo.model.java.JavaType newJavaTypeInstance(java.lang.Class clazz)
Creates a new JavaType instance for the specified Class object.

This implementation returns a EnhancerJavaType instance.

Parameters:
clazz - the Class instance representing the type
Returns:
a new JavaType instance

getTypeName

public java.lang.String getTypeName(java.lang.String sig)
Returns the fully qualified name of the specified type representation.


affirm

protected static final void affirm(boolean condition,
                                   java.lang.String msg)


Copyright © 2005 Apache Software Foundation. All Rights Reserved.