Class ComponentEnvManagerImpl
- java.lang.Object
-
- com.sun.enterprise.container.common.impl.ComponentEnvManagerImpl
-
- All Implemented Interfaces:
ComponentEnvManager
@Service public class ComponentEnvManagerImpl extends Object implements ComponentEnvManager
-
-
Constructor Summary
Constructors Constructor Description ComponentEnvManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToComponentNamespace(JndiNameEnvironment origEnv, Collection<EnvironmentProperty> envProps, Collection<ResourceReferenceDescriptor> resRefs)
String
bindToComponentNamespace(JndiNameEnvironment env)
String
getComponentEnvId(JndiNameEnvironment env)
Generate a unique id name for each J2EE component.ApplicationEnvironment
getCurrentApplicationEnvironment()
Returns the current application environment if not running in a specified containerJndiNameEnvironment
getCurrentJndiNameEnvironment()
Remove once WebContainer sets JndiNameEnvironment on every "new ComponentInvocation()"JndiNameEnvironment
getJndiNameEnvironment(String componentId)
Remove once WebContainer sets JndiNameEnvironment on every "new ComponentInvocation()"void
register(String componentId, JndiNameEnvironment env)
void
unbindFromComponentNamespace(JndiNameEnvironment env)
void
unregister(String componentId)
-
-
-
Method Detail
-
register
public void register(String componentId, JndiNameEnvironment env)
-
unregister
public void unregister(String componentId)
-
getJndiNameEnvironment
public JndiNameEnvironment getJndiNameEnvironment(String componentId)
Description copied from interface:ComponentEnvManager
Remove once WebContainer sets JndiNameEnvironment on every "new ComponentInvocation()"- Specified by:
getJndiNameEnvironment
in interfaceComponentEnvManager
- Returns:
-
getCurrentJndiNameEnvironment
public JndiNameEnvironment getCurrentJndiNameEnvironment()
Description copied from interface:ComponentEnvManager
Remove once WebContainer sets JndiNameEnvironment on every "new ComponentInvocation()"- Specified by:
getCurrentJndiNameEnvironment
in interfaceComponentEnvManager
- Returns:
-
bindToComponentNamespace
public String bindToComponentNamespace(JndiNameEnvironment env) throws NamingException
- Specified by:
bindToComponentNamespace
in interfaceComponentEnvManager
- Throws:
NamingException
-
addToComponentNamespace
public void addToComponentNamespace(JndiNameEnvironment origEnv, Collection<EnvironmentProperty> envProps, Collection<ResourceReferenceDescriptor> resRefs) throws NamingException
- Specified by:
addToComponentNamespace
in interfaceComponentEnvManager
- Throws:
NamingException
-
unbindFromComponentNamespace
public void unbindFromComponentNamespace(JndiNameEnvironment env) throws NamingException
- Specified by:
unbindFromComponentNamespace
in interfaceComponentEnvManager
- Throws:
NamingException
-
getComponentEnvId
public String getComponentEnvId(JndiNameEnvironment env)
Generate a unique id name for each J2EE component.- Specified by:
getComponentEnvId
in interfaceComponentEnvManager
-
getCurrentApplicationEnvironment
public ApplicationEnvironment getCurrentApplicationEnvironment()
Description copied from interface:ComponentEnvManager
Returns the current application environment if not running in a specified container- Specified by:
getCurrentApplicationEnvironment
in interfaceComponentEnvManager
- Returns:
- The current application environment or null if we are not currently running as a specific application
-
-