public class org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer extends java.lang.Object implements org.glassfish.resourcebase.resources.api.ResourceDeployer
{
private static final java.util.logging.Logger LOG;
private org.glassfish.resourcebase.resources.naming.ResourceNamingService namingService;
private org.glassfish.concurrent.runtime.ConcurrentRuntime runtime;
private org.glassfish.api.invocation.InvocationManager invocationManager;
public void <init>()
{
org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer v;
v := @this: org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer;
specialinvoke v.<java.lang.Object: void <init>()>();
return;
}
public void deployResource(com.sun.enterprise.deployment.ContextServiceDefinitionDescriptor) throws java.lang.Exception
{
org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer v;
com.sun.enterprise.deployment.'annotation'.handlers.ContextServiceDefinitionData v;
org.glassfish.resourcebase.resources.naming.ResourceNamingService v;
org.glassfish.enterprise.concurrent.ContextServiceImpl v;
com.sun.enterprise.deployment.ContextServiceDefinitionDescriptor v;
org.glassfish.resourcebase.resources.api.ResourceInfo v;
v := @this: org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer;
v := @parameter: com.sun.enterprise.deployment.ContextServiceDefinitionDescriptor;
v = specialinvoke v.<org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer: org.glassfish.resourcebase.resources.api.ResourceInfo toResourceInfo(com.sun.enterprise.deployment.ResourceDescriptor)>(v);
v = virtualinvoke v.<com.sun.enterprise.deployment.ContextServiceDefinitionDescriptor: com.sun.enterprise.deployment.'annotation'.handlers.ContextServiceDefinitionData getData()>();
v = specialinvoke v.<org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer: org.glassfish.enterprise.concurrent.ContextServiceImpl createContextService(com.sun.enterprise.deployment.'annotation'.handlers.ContextServiceDefinitionData)>(v);
v = v.<org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer: org.glassfish.resourcebase.resources.naming.ResourceNamingService namingService>;
virtualinvoke v.<org.glassfish.resourcebase.resources.naming.ResourceNamingService: void publishObject(org.glassfish.resourcebase.resources.api.GenericResourceInfo,java.lang.Object,boolean)>(v, v, 1);
return;
}
public void deployResource(com.sun.enterprise.deployment.ContextServiceDefinitionDescriptor, java.lang.String, java.lang.String) throws java.lang.Exception
{
org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer v;
org.glassfish.enterprise.concurrent.ContextServiceImpl v;
com.sun.enterprise.deployment.'annotation'.handlers.ContextServiceDefinitionData v;
org.glassfish.resourcebase.resources.naming.ResourceNamingService v;
com.sun.enterprise.deployment.ContextServiceDefinitionDescriptor v;
java.lang.String v, v;
org.glassfish.resourcebase.resources.api.ResourceInfo v;
v := @this: org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer;
v := @parameter: com.sun.enterprise.deployment.ContextServiceDefinitionDescriptor;
v := @parameter: java.lang.String;
v := @parameter: java.lang.String;
v = specialinvoke v.<org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer: org.glassfish.resourcebase.resources.api.ResourceInfo toResourceInfo(com.sun.enterprise.deployment.ResourceDescriptor)>(v);
v = virtualinvoke v.<com.sun.enterprise.deployment.ContextServiceDefinitionDescriptor: com.sun.enterprise.deployment.'annotation'.handlers.ContextServiceDefinitionData getData()>();
v = specialinvoke v.<org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer: org.glassfish.enterprise.concurrent.ContextServiceImpl createContextService(com.sun.enterprise.deployment.'annotation'.handlers.ContextServiceDefinitionData)>(v);
v = v.<org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer: org.glassfish.resourcebase.resources.naming.ResourceNamingService namingService>;
virtualinvoke v.<org.glassfish.resourcebase.resources.naming.ResourceNamingService: void publishObject(org.glassfish.resourcebase.resources.api.GenericResourceInfo,java.lang.Object,boolean)>(v, v, 1);
return;
}
public void undeployResource(com.sun.enterprise.deployment.ContextServiceDefinitionDescriptor) throws java.lang.Exception
{
org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer v;
org.glassfish.resourcebase.resources.naming.ResourceNamingService v;
com.sun.enterprise.deployment.ContextServiceDefinitionDescriptor v;
org.glassfish.api.naming.SimpleJndiName v;
org.glassfish.resourcebase.resources.api.ResourceInfo v;
org.glassfish.concurrent.runtime.ConcurrentRuntime v;
v := @this: org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer;
v := @parameter: com.sun.enterprise.deployment.ContextServiceDefinitionDescriptor;
v = specialinvoke v.<org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer: org.glassfish.resourcebase.resources.api.ResourceInfo toResourceInfo(com.sun.enterprise.deployment.ResourceDescriptor)>(v);
v = v.<org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer: org.glassfish.resourcebase.resources.naming.ResourceNamingService namingService>;
virtualinvoke v.<org.glassfish.resourcebase.resources.naming.ResourceNamingService: void unpublishObject(org.glassfish.resourcebase.resources.api.GenericResourceInfo)>(v);
v = v.<org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer: org.glassfish.concurrent.runtime.ConcurrentRuntime runtime>;
v = virtualinvoke v.<org.glassfish.resourcebase.resources.api.ResourceInfo: org.glassfish.api.naming.SimpleJndiName getName()>();
virtualinvoke v.<org.glassfish.concurrent.runtime.ConcurrentRuntime: void shutdownContextService(org.glassfish.api.naming.SimpleJndiName)>(v);
return;
}
public void undeployResource(com.sun.enterprise.deployment.ContextServiceDefinitionDescriptor, java.lang.String, java.lang.String) throws java.lang.Exception
{
org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer v;
org.glassfish.resourcebase.resources.naming.ResourceNamingService v;
com.sun.enterprise.deployment.ContextServiceDefinitionDescriptor v;
org.glassfish.api.naming.SimpleJndiName v;
java.lang.String v, v;
org.glassfish.resourcebase.resources.api.ResourceInfo v;
org.glassfish.concurrent.runtime.ConcurrentRuntime v;
v := @this: org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer;
v := @parameter: com.sun.enterprise.deployment.ContextServiceDefinitionDescriptor;
v := @parameter: java.lang.String;
v := @parameter: java.lang.String;
v = specialinvoke v.<org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer: org.glassfish.resourcebase.resources.api.ResourceInfo toResourceInfo(com.sun.enterprise.deployment.ResourceDescriptor)>(v);
v = v.<org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer: org.glassfish.resourcebase.resources.naming.ResourceNamingService namingService>;
virtualinvoke v.<org.glassfish.resourcebase.resources.naming.ResourceNamingService: void unpublishObject(org.glassfish.resourcebase.resources.api.GenericResourceInfo)>(v);
v = v.<org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer: org.glassfish.concurrent.runtime.ConcurrentRuntime runtime>;
v = virtualinvoke v.<org.glassfish.resourcebase.resources.api.ResourceInfo: org.glassfish.api.naming.SimpleJndiName getName()>();
virtualinvoke v.<org.glassfish.concurrent.runtime.ConcurrentRuntime: void shutdownContextService(org.glassfish.api.naming.SimpleJndiName)>(v);
return;
}
public void redeployResource(com.sun.enterprise.deployment.ContextServiceDefinitionDescriptor) throws java.lang.Exception
{
com.sun.enterprise.deployment.ContextServiceDefinitionDescriptor v;
org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer v;
v := @this: org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer;
v := @parameter: com.sun.enterprise.deployment.ContextServiceDefinitionDescriptor;
virtualinvoke v.<org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer: void undeployResource(com.sun.enterprise.deployment.ContextServiceDefinitionDescriptor)>(v);
virtualinvoke v.<org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer: void deployResource(com.sun.enterprise.deployment.ContextServiceDefinitionDescriptor)>(v);
return;
}
public void enableResource(com.sun.enterprise.deployment.ContextServiceDefinitionDescriptor) throws java.lang.Exception
{
com.sun.enterprise.deployment.ContextServiceDefinitionDescriptor v;
org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer v;
v := @this: org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer;
v := @parameter: com.sun.enterprise.deployment.ContextServiceDefinitionDescriptor;
virtualinvoke v.<org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer: void deployResource(com.sun.enterprise.deployment.ContextServiceDefinitionDescriptor)>(v);
return;
}
public void disableResource(com.sun.enterprise.deployment.ContextServiceDefinitionDescriptor) throws java.lang.Exception
{
com.sun.enterprise.deployment.ContextServiceDefinitionDescriptor v;
org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer v;
v := @this: org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer;
v := @parameter: com.sun.enterprise.deployment.ContextServiceDefinitionDescriptor;
virtualinvoke v.<org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer: void undeployResource(com.sun.enterprise.deployment.ContextServiceDefinitionDescriptor)>(v);
return;
}
public boolean handles(java.lang.Object)
{
java.lang.Object v;
org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer v;
boolean v;
v := @this: org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer;
v := @parameter: java.lang.Object;
v = v instanceof com.sun.enterprise.deployment.ContextServiceDefinitionDescriptor;
return v;
}
public boolean supportsDynamicReconfiguration()
{
org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer v;
v := @this: org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer;
return 0;
}
public java.lang.Class[] getProxyClassesForDynamicReconfiguration()
{
java.lang.Class[] v;
org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer v;
v := @this: org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer;
v = newarray (java.lang.Class)[0];
return v;
}
public void validatePreservedResource(com.sun.enterprise.config.serverbeans.Application, com.sun.enterprise.config.serverbeans.Application, com.sun.enterprise.config.serverbeans.Resource, com.sun.enterprise.config.serverbeans.Resources) throws org.glassfish.resourcebase.resources.api.ResourceConflictException
{
org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer v;
com.sun.enterprise.config.serverbeans.Application v, v;
com.sun.enterprise.config.serverbeans.Resources v;
com.sun.enterprise.config.serverbeans.Resource v;
v := @this: org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer;
v := @parameter: com.sun.enterprise.config.serverbeans.Application;
v := @parameter: com.sun.enterprise.config.serverbeans.Application;
v := @parameter: com.sun.enterprise.config.serverbeans.Resource;
v := @parameter: com.sun.enterprise.config.serverbeans.Resources;
return;
}
private org.glassfish.resourcebase.resources.api.ResourceInfo toResourceInfo(com.sun.enterprise.deployment.ResourceDescriptor)
{
org.glassfish.api.invocation.InvocationManager v;
org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer v;
org.glassfish.deployment.common.JavaEEResourceType v;
org.glassfish.api.invocation.ComponentInvocation v;
org.glassfish.api.naming.SimpleJndiName v, v;
java.lang.String v, v, v;
org.glassfish.resourcebase.resources.api.ResourceInfo v;
com.sun.enterprise.deployment.ResourceDescriptor v;
v := @this: org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer;
v := @parameter: com.sun.enterprise.deployment.ResourceDescriptor;
v = virtualinvoke v.<com.sun.enterprise.deployment.ResourceDescriptor: java.lang.String getResourceId()>();
v = virtualinvoke v.<com.sun.enterprise.deployment.ResourceDescriptor: org.glassfish.api.naming.SimpleJndiName getJndiName()>();
v = virtualinvoke v.<com.sun.enterprise.deployment.ResourceDescriptor: org.glassfish.deployment.common.JavaEEResourceType getResourceType()>();
v = staticinvoke <com.sun.appserv.connectors.internal.api.ConnectorsUtil: org.glassfish.api.naming.SimpleJndiName deriveResourceName(java.lang.String,org.glassfish.api.naming.SimpleJndiName,org.glassfish.deployment.common.JavaEEResourceType)>(v, v, v);
v = v.<org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer: org.glassfish.api.invocation.InvocationManager invocationManager>;
v = interfaceinvoke v.<org.glassfish.api.invocation.InvocationManager: org.glassfish.api.invocation.ComponentInvocation getCurrentInvocation()>();
v = new org.glassfish.resourcebase.resources.api.ResourceInfo;
v = virtualinvoke v.<org.glassfish.api.invocation.ComponentInvocation: java.lang.String getAppName()>();
v = virtualinvoke v.<org.glassfish.api.invocation.ComponentInvocation: java.lang.String getModuleName()>();
specialinvoke v.<org.glassfish.resourcebase.resources.api.ResourceInfo: void <init>(org.glassfish.api.naming.SimpleJndiName,java.lang.String,java.lang.String)>(v, v, v);
return v;
}
private org.glassfish.enterprise.concurrent.ContextServiceImpl createContextService(com.sun.enterprise.deployment.'annotation'.handlers.ContextServiceDefinitionData) throws java.lang.Exception
{
com.sun.enterprise.deployment.types.StandardContextType v, v;
java.util.logging.Level v;
com.sun.enterprise.deployment.'annotation'.handlers.ContextServiceDefinitionData v;
org.glassfish.concurrent.runtime.deployer.cfg.ContextServiceCfg v;
java.lang.String v, v;
org.glassfish.concurrent.runtime.ConcurrentRuntime v;
boolean v, v;
org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer v;
org.glassfish.enterprise.concurrent.ContextServiceImpl v;
java.util.Set v, v, v, v;
java.util.logging.Logger v;
v := @this: org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer;
v := @parameter: com.sun.enterprise.deployment.'annotation'.handlers.ContextServiceDefinitionData;
v = <org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer: java.util.logging.Logger LOG>;
v = <java.util.logging.Level: java.util.logging.Level FINEST>;
virtualinvoke v.<java.util.logging.Logger: void log(java.util.logging.Level,java.lang.String,java.lang.Object)>(v, "createContextService(data={0})", v);
v = virtualinvoke v.<com.sun.enterprise.deployment.'annotation'.handlers.ContextServiceDefinitionData: java.util.Set getCleared()>();
if v == null goto label;
v = virtualinvoke v.<com.sun.enterprise.deployment.'annotation'.handlers.ContextServiceDefinitionData: java.util.Set getCleared()>();
v = interfaceinvoke v.<java.util.Set: boolean isEmpty()>();
if v == 0 goto label;
label:
v = <com.sun.enterprise.deployment.types.StandardContextType: com.sun.enterprise.deployment.types.StandardContextType WorkArea>;
v = virtualinvoke v.<com.sun.enterprise.deployment.types.StandardContextType: java.lang.String name()>();
virtualinvoke v.<com.sun.enterprise.deployment.'annotation'.handlers.ContextServiceDefinitionData: void addCleared(java.lang.String)>(v);
label:
v = virtualinvoke v.<com.sun.enterprise.deployment.'annotation'.handlers.ContextServiceDefinitionData: java.util.Set getPropagated()>();
if v == null goto label;
v = virtualinvoke v.<com.sun.enterprise.deployment.'annotation'.handlers.ContextServiceDefinitionData: java.util.Set getPropagated()>();
v = interfaceinvoke v.<java.util.Set: boolean isEmpty()>();
if v == 0 goto label;
label:
v = <com.sun.enterprise.deployment.types.StandardContextType: com.sun.enterprise.deployment.types.StandardContextType Remaining>;
v = virtualinvoke v.<com.sun.enterprise.deployment.types.StandardContextType: java.lang.String name()>();
virtualinvoke v.<com.sun.enterprise.deployment.'annotation'.handlers.ContextServiceDefinitionData: void addPropagated(java.lang.String)>(v);
label:
v = v.<org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer: org.glassfish.concurrent.runtime.ConcurrentRuntime runtime>;
v = new org.glassfish.concurrent.runtime.deployer.cfg.ContextServiceCfg;
specialinvoke v.<org.glassfish.concurrent.runtime.deployer.cfg.ContextServiceCfg: void <init>(com.sun.enterprise.deployment.'annotation'.handlers.ContextServiceDefinitionData)>(v);
v = virtualinvoke v.<org.glassfish.concurrent.runtime.ConcurrentRuntime: org.glassfish.enterprise.concurrent.ContextServiceImpl createContextService(org.glassfish.concurrent.runtime.deployer.cfg.ContextServiceCfg)>(v);
return v;
}
static void <clinit>()
{
java.util.logging.Logger v;
v = staticinvoke <org.glassfish.concurrent.runtime.LogFacade: java.util.logging.Logger getLogger()>();
<org.glassfish.concurrent.runtime.deployer.ContextServiceDefinitionDeployer: java.util.logging.Logger LOG> = v;
return;
}
}