public class ContainerSealant
extends java.lang.Object
This sealant class is not only used for components, but also for offshoots from that component,
if they follow the tie-approach. Since ACS 9.0 it uses DynamicInterceptor.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CHECK_NULLS_CORBA_OUT_PROPERTYNAME
If this property is enabled, the container will check the return value and out/inout parameters
for illegal null values that will cause exceptions during subsequent corba marshalling.
|
| Constructor and Description |
|---|
ContainerSealant() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
createContainerSealant(java.lang.Class<T> corbaInterface,
java.lang.Object component,
java.lang.String name,
boolean isOffShoot,
java.util.logging.Logger logger,
java.lang.ClassLoader componentContextCL,
java.lang.String[] methodNamesExcludedFromInvocationLogging)
Creates a ContainerSealant and uses it as the invocation handler for the returned dynamic proxy
which implements
corbaInterface. |
public static final java.lang.String CHECK_NULLS_CORBA_OUT_PROPERTYNAME
public static <T> T createContainerSealant(java.lang.Class<T> corbaInterface,
java.lang.Object component,
java.lang.String name,
boolean isOffShoot,
java.util.logging.Logger logger,
java.lang.ClassLoader componentContextCL,
java.lang.String[] methodNamesExcludedFromInvocationLogging)
throws AcsJContainerEx
corbaInterface.corbaInterface - the interface that the created sealant will implement;
this should be the component's or offshoot's xxxOperations interface.component - the component/offshoot implementation class, or any translator class
in front of the component implementation.
componentImpl must implement corbaInterface
so that the sealant can forward calls to the component. name - the component instance name (used for logging)isOffShoot - true if the component object is actually an offshoot of a componentlogger - logger to be used by this classcomponentContextCL - classloader used for Thread.setContextClassLoader(java.lang.ClassLoader setContextClassLoader)
before component method gets invoked. (after the call, the old context CL will be restored.)methodNamesExcludedFromInvocationLogging - corbaInterface that intercepts calls to
componentImpl and forwards them if restrictions allow this.ContainerException - if the given component Object does not implement the given corbaInterface.AcsJContainerEx