| Modifier and Type | Field and Description |
|---|---|
| private ClassCopierFactory | |
| private ClassCopier | |
| private CachingClassCopierFactory | |
| private static final Class | |
| private static final Class | |
| private static final Class | |
| private ClassCopierFactory | |
| private ReentrantReadWriteLock | |
| private ClassCopierFactory |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public ClassCopier | getClassCopier(Class<?> cls)
Implements org. Analyze cls to determine the appropriate ClassCopier and return the ClassCopier instance. |
| public ClassCopier | lookupInCache(Class<?> cls)
Implements org. Look for cls only in the cache; do not create a ClassCopier if there isn't one already in the cache. |
| public boolean | reflectivelyCopyable(Class<?> cls)
Implements org. Added this method so reflective copier could check if serializable object contains a transient field of specific type. |
| public final synchronized void | registerImmutable(Class<?> cls)
Implements org. Register an immutable class, so that it will not be copied, but just passed by reference. |
| public void | setSpecialClassCopierFactory(ClassCopierFactory ccf)
Implements org. Set a special ClassCopierFactory to handle some application specific needs. |
| arrayFactory | back to summary |
|---|---|
| private ClassCopierFactory arrayFactory | |
| errorCopier | back to summary |
|---|---|
| private ClassCopier errorCopier | |
| factoryCache | back to summary |
|---|---|
| private CachingClassCopierFactory factoryCache | |
| immutable | back to summary |
|---|---|
| private static final Class<?>[] immutable | |
| mapClasses | back to summary |
|---|---|
| private static final Class<?>[] mapClasses | |
| notCopyable | back to summary |
|---|---|
| private static final Class<?>[] notCopyable | |
| ordinaryFactory | back to summary |
|---|---|
| private ClassCopierFactory ordinaryFactory | |
| rwlock | back to summary |
|---|---|
| private ReentrantReadWriteLock rwlock | |
| specialFactory | back to summary |
|---|---|
| private ClassCopierFactory specialFactory | |
| ClassCopierFactoryPipelineImpl | back to summary |
|---|---|
| public ClassCopierFactoryPipelineImpl() | |
| getClassCopier | back to summary |
|---|---|
| public ClassCopier getClassCopier(Class<?> cls) throws ReflectiveCopyException Implements org. Analyze cls to determine the appropriate ClassCopier and return the ClassCopier instance. Will only create a ClassCopier for a given Class once.
| |
| lookupInCache | back to summary |
|---|---|
| public ClassCopier lookupInCache(Class<?> cls) Implements org. Look for cls only in the cache; do not create a ClassCopier if there isn't one already in the cache.
| |
| reflectivelyCopyable | back to summary |
|---|---|
| public boolean reflectivelyCopyable(Class<?> cls) Implements org. Doc from org. Added this method so reflective copier could check if serializable object contains a transient field of specific type.
| |
| registerImmutable | back to summary |
|---|---|
| public final synchronized void registerImmutable(Class<?> cls) Implements org. Register an immutable class, so that it will not be copied, but just passed by reference.
| |
| setSpecialClassCopierFactory | back to summary |
|---|---|
| public void setSpecialClassCopierFactory(ClassCopierFactory ccf) Implements org. Set a special ClassCopierFactory to handle some application specific needs.
| |