All of these permissions are required to obtain and correctly initialize the instance of Bridge. No security checks are performed on calls made to Bridge instance methods, so access to the Bridge instance must be protected.
This class is a singleton (per ClassLoader of course). Access to the instance is obtained through the Bridge.get() method.
| Modifier and Type | Field and Description |
|---|---|
| private static Bridge | |
| private static final Permission | |
| private final ReflectionFactory |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static synchronized Bridge | |
| public boolean | hasStaticInitializerForSerialization(Class<?> cl)
Implements abstract org. Returns true if the given class defines a static initializer method, false otherwise. |
| public <T> Constructor | newConstructorForExternalization(Class<T> cl)
Implements abstract org. Return a constructor that can be used to create an instance of the class for externalization. |
| public <T> Constructor | newConstructorForSerialization(Class<T> aClass, Constructor<?> cons)
Implements abstract org. Return a no-arg constructor for the specified class which invokes the specified constructor. |
| public <T> Constructor | newConstructorForSerialization(Class<T> aClass)
Implements abstract org. Return a no-arg constructor for the specified class, based on the default constructor for its nearest non-serializable base class. |
| public OptionalDataException | newOptionalDataExceptionForSerialization(boolean bool)
Implements abstract org. Return a new OptionalDataException instance. |
| public MethodHandle | readObjectForSerialization(Class<?> cl)
Implements abstract org. Returns a method handle to allow invocation of the specified class's readObject method. |
| public MethodHandle | |
| public MethodHandle | readResolveForSerialization(Class<?> cl)
Implements abstract org. Returns a method handle to allow invocation of the specified class's readResolve method. |
| public MethodHandle | writeObjectForSerialization(Class<?> cl)
Implements abstract org. Returns a method handle to allow invocation of the specified class's writeObject method. |
| public MethodHandle | writeReplaceForSerialization(Class<?> cl)
Implements abstract org. Returns a method handle to allow invocation of the specified class's writeReplace method. |
| bridge | back to summary |
|---|---|
| private static Bridge bridge | |
| GET_BRIDGE_PERMISSION | back to summary |
|---|---|
| private static final Permission GET_BRIDGE_PERMISSION | |
| reflectionFactory | back to summary |
|---|---|
| private final ReflectionFactory reflectionFactory | |
| Bridge | back to summary |
|---|---|
| private Bridge() | |
| get | back to summary |
|---|---|
| public static synchronized Bridge get() Fetch the Bridge singleton. This requires the following permissions:
| |
| hasStaticInitializerForSerialization | back to summary |
|---|---|
| public boolean hasStaticInitializerForSerialization(Class<?> cl) Implements abstract org. Returns true if the given class defines a static initializer method, false otherwise.
| |
| newConstructorForExternalization | back to summary |
|---|---|
| public <T> Constructor Implements abstract org. Doc from org. Return a constructor that can be used to create an instance of the class for externalization.
| |
| newConstructorForSerialization | back to summary |
|---|---|
| public <T> Constructor Implements abstract org. Doc from org. Return a no-arg constructor for the specified class which invokes the specified constructor.
| |
| newConstructorForSerialization | back to summary |
|---|---|
| public <T> Constructor Implements abstract org. Doc from org. Return a no-arg constructor for the specified class, based on the default constructor for its nearest non-serializable base class.
| |
| newOptionalDataExceptionForSerialization | back to summary |
|---|---|
| public OptionalDataException newOptionalDataExceptionForSerialization(boolean bool) Implements abstract org. Doc from org. Return a new OptionalDataException instance.
| |
| readObjectForSerialization | back to summary |
|---|---|
| public MethodHandle readObjectForSerialization(Class<?> cl) Implements abstract org. Doc from org. Returns a method handle to allow invocation of the specified class's readObject method.
| |
| readObjectNoDataForSerialization | back to summary |
|---|---|
| public MethodHandle readObjectNoDataForSerialization(Class<?> cl) | |
| readResolveForSerialization | back to summary |
|---|---|
| public MethodHandle readResolveForSerialization(Class<?> cl) Implements abstract org. Doc from org. Returns a method handle to allow invocation of the specified class's readResolve method.
| |
| writeObjectForSerialization | back to summary |
|---|---|
| public MethodHandle writeObjectForSerialization(Class<?> cl) Implements abstract org. Doc from org. Returns a method handle to allow invocation of the specified class's writeObject method.
| |
| writeReplaceForSerialization | back to summary |
|---|---|
| public MethodHandle writeReplaceForSerialization(Class<?> cl) Implements abstract org. Doc from org. Returns a method handle to allow invocation of the specified class's writeReplace method.
| |