org.apache.geronimo.j2ee.j2eeobjectnames
Class J2eeContextImpl

java.lang.Object
  extended by org.apache.geronimo.j2ee.j2eeobjectnames.J2eeContextImpl
All Implemented Interfaces:
J2eeContext

public class J2eeContextImpl
extends Object
implements J2eeContext


Constructor Summary
J2eeContextImpl(String domainName, String serverName, String applicationName, String moduleType, String moduleName, String j2eeName, String j2eeType)
           
 
Method Summary
 String getJ2eeApplicationName()
           
 String getJ2eeApplicationName(String override)
           
 String getJ2eeDomainName()
           
 String getJ2eeDomainName(String override)
           
 String getJ2eeModuleName()
           
 String getJ2eeModuleName(String override)
           
 String getJ2eeModuleType()
           
 String getJ2eeModuleType(String override)
           
 String getJ2eeName()
           
 String getJ2eeName(String override)
           
 String getJ2eeServerName()
           
 String getJ2eeServerName(String override)
           
 String getJ2eeType()
           
 String getJ2eeType(String override)
           
static J2eeContextImpl newContext(ObjectName source, String moduleType)
           
static J2eeContextImpl newModuleContext(ObjectName source, String moduleType)
          This method is a workaround for GERONIMO-1140 -- it's the same as the previous one except for the offending line.
static J2eeContextImpl newModuleContextFromApplication(J2eeContext source, String moduleType, String moduleName)
           
static J2eeContextImpl newModuleContextFromApplication(ObjectName source, String moduleType, String moduleName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

J2eeContextImpl

public J2eeContextImpl(String domainName,
                       String serverName,
                       String applicationName,
                       String moduleType,
                       String moduleName,
                       String j2eeName,
                       String j2eeType)
Method Detail

newContext

public static J2eeContextImpl newContext(ObjectName source,
                                         String moduleType)

newModuleContext

public static J2eeContextImpl newModuleContext(ObjectName source,
                                               String moduleType)
This method is a workaround for GERONIMO-1140 -- it's the same as the previous one except for the offending line. If this is determined to be a valid change in general, this can replace newContext(ObjectName, String) However, I'm not 100% sure that it's OK to have the J2EE_NAME in two consecutive parameters in the general case.


newModuleContextFromApplication

public static J2eeContextImpl newModuleContextFromApplication(ObjectName source,
                                                              String moduleType,
                                                              String moduleName)

newModuleContextFromApplication

public static J2eeContextImpl newModuleContextFromApplication(J2eeContext source,
                                                              String moduleType,
                                                              String moduleName)

getJ2eeDomainName

public String getJ2eeDomainName()
Specified by:
getJ2eeDomainName in interface J2eeContext

getJ2eeServerName

public String getJ2eeServerName()
Specified by:
getJ2eeServerName in interface J2eeContext

getJ2eeApplicationName

public String getJ2eeApplicationName()
Specified by:
getJ2eeApplicationName in interface J2eeContext

getJ2eeModuleType

public String getJ2eeModuleType()
Specified by:
getJ2eeModuleType in interface J2eeContext

getJ2eeModuleName

public String getJ2eeModuleName()
Specified by:
getJ2eeModuleName in interface J2eeContext

getJ2eeName

public String getJ2eeName()
Specified by:
getJ2eeName in interface J2eeContext

getJ2eeType

public String getJ2eeType()
Specified by:
getJ2eeType in interface J2eeContext

getJ2eeDomainName

public String getJ2eeDomainName(String override)
Specified by:
getJ2eeDomainName in interface J2eeContext

getJ2eeServerName

public String getJ2eeServerName(String override)
Specified by:
getJ2eeServerName in interface J2eeContext

getJ2eeApplicationName

public String getJ2eeApplicationName(String override)
Specified by:
getJ2eeApplicationName in interface J2eeContext

getJ2eeModuleType

public String getJ2eeModuleType(String override)
Specified by:
getJ2eeModuleType in interface J2eeContext

getJ2eeModuleName

public String getJ2eeModuleName(String override)
Specified by:
getJ2eeModuleName in interface J2eeContext

getJ2eeName

public String getJ2eeName(String override)
Specified by:
getJ2eeName in interface J2eeContext

getJ2eeType

public String getJ2eeType(String override)
Specified by:
getJ2eeType in interface J2eeContext


Copyright © 2003-2008 The Apache Geronimo development community. All Rights Reserved.