Top Description Inners Fields Constructors Methods
org.jboss.marshalling.cloner

pack-priv Class CloneableCloner

extends Object
implements ObjectCloner
Class Inheritance
All Implemented Interfaces
org.jboss.marshalling.cloner.ObjectCloner
Static Imports
java.lang.System.getSecurityManager, java.security.AccessController.doPrivileged

An object cloner which clones objects that implement Cloneable.

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final Method
private final IdentityHashMap<Object, Object>
private final CloneTable

Constructor Summary

AccessConstructor and Description
pack-priv
CloneableCloner(final ClonerConfiguration
the configuration
configuration
)

Create a new instance.

Method Summary

Modifier and TypeMethod and Description
public Object
clone(final Object
the original object
orig
)

Implements org.jboss.marshalling.cloner.ObjectCloner.clone.

Create a deep clone of the given object.
public void
reset()

Implements org.jboss.marshalling.cloner.ObjectCloner.reset.

Clear the cloner state and any caches.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CLONEback to summary
private static final Method CLONE
clonesback to summary
private final IdentityHashMap<Object, Object> clones
cloneTableback to summary
private final CloneTable cloneTable

Constructor Detail

CloneableClonerback to summary
pack-priv CloneableCloner(final ClonerConfiguration configuration)

Create a new instance.

Parameters
configuration:ClonerConfiguration

the configuration

Method Detail

cloneback to summary
public Object clone(final Object orig) throws IOException, ClassNotFoundException

Implements org.jboss.marshalling.cloner.ObjectCloner.clone.

Doc from org.jboss.marshalling.cloner.ObjectCloner.clone.

Create a deep clone of the given object.

Parameters
orig:Object

the original object

Returns:Object

the deep clone

Exceptions
IOException:
if a serialization error occurs
ClassNotFoundException:
if a class cannot be loaded during the cloning process
resetback to summary
public void reset()

Implements org.jboss.marshalling.cloner.ObjectCloner.reset.

Doc from org.jboss.marshalling.cloner.ObjectCloner.reset.

Clear the cloner state and any caches.

org.jboss.marshalling.cloner back to summary

private final Class CloneableCloner.GetCloneMethodAction

extends Object
implements PrivilegedAction<Method>
Class Inheritance
  • java.lang.Object
  • org.jboss.marshalling.cloner.CloneableCloner.GetCloneMethodAction
All Implemented Interfaces
java.security.PrivilegedAction

Field Summary

Modifier and TypeField and Description
private static final PrivilegedAction<Method>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Method
run()

Implements java.security.PrivilegedAction.run.

Performs the computation.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

INSTANCEback to summary
private static final PrivilegedAction<Method> INSTANCE

Constructor Detail

GetCloneMethodActionback to summary
private GetCloneMethodAction()

Method Detail

runback to summary
public Method run()

Implements java.security.PrivilegedAction.run.

Doc from java.security.PrivilegedAction.run.

Performs the computation. This method will be called by AccessController.doPrivileged after enabling privileges.

Returns:Method

a class-dependent value that may represent the results of the computation. Each class that implements PrivilegedAction should document what (if anything) this value represents.