net.ep.db4o.javassist
Class JVSTReflector

java.lang.Object
  extended by net.ep.db4o.javassist.JVSTReflector
All Implemented Interfaces:
com.db4o.foundation.DeepClone, com.db4o.reflect.Reflector

public class JVSTReflector
extends java.lang.Object
implements com.db4o.reflect.Reflector


Nested Class Summary
static class JVSTReflector.ClassData
           
 
Constructor Summary
JVSTReflector(java.lang.ClassLoader classLoader)
          Constructor
JVSTReflector(com.db4o.reflect.jdk.JdkLoader classLoader)
          Constructor
 
Method Summary
 com.db4o.reflect.ReflectArray array()
          ReflectArray factory
static boolean canBeEnhanced(java.lang.Class clazz)
           
 com.db4o.reflect.ReflectorConfiguration configuration()
           
 void configuration(com.db4o.reflect.ReflectorConfiguration config)
           
protected  com.db4o.reflect.ReflectClass createClass(java.lang.Class clazz)
           
 java.lang.Object deepClone(java.lang.Object obj)
          Creates a copy of the object
 JVSTClass enhanceClass(java.lang.Class clazz)
           
static java.lang.String explainWhyNotEnhanced(java.lang.Class clazz)
           
 com.db4o.reflect.ReflectClass forClass(java.lang.Class clazz)
          Returns ReflectClass for the specified class
 com.db4o.reflect.ReflectClass forName(java.lang.String className)
          Returns ReflectClass for the specified class name
 com.db4o.reflect.ReflectClass forObject(java.lang.Object a_object)
          Returns ReflectClass for the specified class object
 ActivateOnMethodPolicy getActivationPolicy()
           
 PersistOnMethodPolicy getPersistPolicy()
           
static
<T> java.lang.Class<? super T>
getRealClass(java.lang.Class<? super T> clazz)
           
static boolean hasPublicConstructor(java.lang.Class clazz)
           
 boolean isCollection(com.db4o.reflect.ReflectClass candidate)
          Method stub.
static boolean isEnhanced(java.lang.Class clazz)
           
 boolean methodCallsSupported()
          Method stub.
 void setActivationPolicy(ActivateOnMethodPolicy activationPolicy)
           
 void setIgnoreNullActivator(boolean ignore)
           
 void setParent(com.db4o.reflect.Reflector reflector)
          Sets parent reflector
 void setPersistPolicy(PersistOnMethodPolicy persistPolicy)
           
 void setThreadLocal(boolean threadLocal)
           
static boolean shouldBeEnhanced(java.lang.Class clazz)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JVSTReflector

public JVSTReflector(java.lang.ClassLoader classLoader)
Constructor

Parameters:
classLoader - class loader

JVSTReflector

public JVSTReflector(com.db4o.reflect.jdk.JdkLoader classLoader)
Constructor

Parameters:
classLoader - class loader
Method Detail

getRealClass

public static final <T> java.lang.Class<? super T> getRealClass(java.lang.Class<? super T> clazz)

hasPublicConstructor

public static final boolean hasPublicConstructor(java.lang.Class clazz)

isEnhanced

public static final boolean isEnhanced(java.lang.Class clazz)

shouldBeEnhanced

public static final boolean shouldBeEnhanced(java.lang.Class clazz)

canBeEnhanced

public static final boolean canBeEnhanced(java.lang.Class clazz)

explainWhyNotEnhanced

public static java.lang.String explainWhyNotEnhanced(java.lang.Class clazz)

array

public com.db4o.reflect.ReflectArray array()
ReflectArray factory

Specified by:
array in interface com.db4o.reflect.Reflector
Returns:
ReflectArray instance

configuration

public com.db4o.reflect.ReflectorConfiguration configuration()

configuration

public void configuration(com.db4o.reflect.ReflectorConfiguration config)
Specified by:
configuration in interface com.db4o.reflect.Reflector

createClass

protected com.db4o.reflect.ReflectClass createClass(java.lang.Class clazz)

enhanceClass

public JVSTClass enhanceClass(java.lang.Class clazz)

deepClone

public java.lang.Object deepClone(java.lang.Object obj)
Creates a copy of the object

Specified by:
deepClone in interface com.db4o.foundation.DeepClone
Parameters:
obj - object to copy
Returns:
object copy

forClass

public com.db4o.reflect.ReflectClass forClass(java.lang.Class clazz)
Returns ReflectClass for the specified class

Specified by:
forClass in interface com.db4o.reflect.Reflector
Parameters:
clazz - class
Returns:
ReflectClass for the specified class

forName

public com.db4o.reflect.ReflectClass forName(java.lang.String className)
Returns ReflectClass for the specified class name

Specified by:
forName in interface com.db4o.reflect.Reflector
Parameters:
className - class name
Returns:
ReflectClass for the specified class name

forObject

public com.db4o.reflect.ReflectClass forObject(java.lang.Object a_object)
Returns ReflectClass for the specified class object

Specified by:
forObject in interface com.db4o.reflect.Reflector
Parameters:
a_object - class object
Returns:
ReflectClass for the specified class object

getActivationPolicy

public ActivateOnMethodPolicy getActivationPolicy()

getPersistPolicy

public PersistOnMethodPolicy getPersistPolicy()

isCollection

public boolean isCollection(com.db4o.reflect.ReflectClass candidate)
Method stub. Returns false.

Specified by:
isCollection in interface com.db4o.reflect.Reflector

methodCallsSupported

public boolean methodCallsSupported()
Method stub. Returns false.


setActivationPolicy

public void setActivationPolicy(ActivateOnMethodPolicy activationPolicy)

setParent

public void setParent(com.db4o.reflect.Reflector reflector)
Sets parent reflector

Specified by:
setParent in interface com.db4o.reflect.Reflector
Parameters:
reflector - parent reflector

setPersistPolicy

public void setPersistPolicy(PersistOnMethodPolicy persistPolicy)

setThreadLocal

public void setThreadLocal(boolean threadLocal)

setIgnoreNullActivator

public void setIgnoreNullActivator(boolean ignore)


Copyright © 2009. All Rights Reserved.