org.apache.geronimo.naming.deployment
Class AbstractNamingBuilder

java.lang.Object
  extended by org.apache.geronimo.naming.deployment.AbstractNamingBuilder
All Implemented Interfaces:
AbstractNamespaceBuilder, NamingBuilder
Direct Known Subclasses:
AdminObjectRefBuilder, AxisServiceRefBuilder, CorbaRefBuilder, EjbRefBuilder, EnvironmentEntryBuilder, GBeanRefBuilder, JAXWSServiceRefBuilder, LifecycleMethodBuilder, PersistenceContextRefBuilder, PersistenceUnitRefBuilder, ResourceRefBuilder, SwitchingServiceRefBuilder, TSSLinkBuilder, UserTransactionRefBuilder

public abstract class AbstractNamingBuilder
extends Object
implements NamingBuilder


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.geronimo.j2ee.deployment.NamingBuilder
NamingBuilder.Key<T>
 
Field Summary
protected static NamespaceElementConverter J2EE_CONVERTER
           
protected static String J2EE_NAMESPACE
           
protected static NamespaceElementConverter JEE_CONVERTER
           
protected static String JEE_NAMESPACE
           
protected static NamespaceElementConverter NAMING_CONVERTER
           
 
Fields inherited from interface org.apache.geronimo.j2ee.deployment.NamingBuilder
ENV, GBEAN_NAME_KEY, INJECTION_KEY, JNDI_KEY, NO_REFS
 
Constructor Summary
protected AbstractNamingBuilder()
           
protected AbstractNamingBuilder(Environment defaultEnvironment)
           
 
Method Summary
protected  void addInjections(String jndiName, org.apache.geronimo.xbeans.javaee.InjectionTargetType[] injectionTargetArray, Map sharedContext)
           
static Class assureInterface(String interfaceName, String superInterfaceName, String interfaceType, ClassLoader cl)
           
static AbstractNameQuery buildAbstractNameQuery(Artifact configId, String module, String name, String type, String moduleType)
           
static AbstractNameQuery buildAbstractNameQuery(org.apache.geronimo.xbeans.geronimo.naming.GerPatternType pattern, String type, String moduleType, Set interfaceTypes)
           
 void buildEnvironment(org.apache.xmlbeans.XmlObject specDD, org.apache.xmlbeans.XmlObject plan, Environment environment)
           
protected static org.apache.xmlbeans.QNameSet buildQNameSet(String[] eeNamespaces, String localPart)
           
protected static
<T extends org.apache.xmlbeans.XmlObject>
List<T>
convert(org.apache.xmlbeans.XmlObject[] xmlObjects, NamespaceElementConverter converter, Class<T> c, org.apache.xmlbeans.SchemaType type)
           
protected static org.apache.xmlbeans.XmlObject[] convert(org.apache.xmlbeans.XmlObject[] xmlObjects, NamespaceElementConverter converter, org.apache.xmlbeans.SchemaType type)
          Deprecated.  
protected static org.apache.xmlbeans.XmlObject convert(org.apache.xmlbeans.XmlObject xmlObject, NamespaceElementConverter converter, org.apache.xmlbeans.SchemaType type)
           
protected static Artifact[] getConfigId(Configuration localConfiguration, Configuration earConfiguration)
           
 Environment getEnvironment()
           
protected  AbstractName getGBeanName(Map sharedContext)
           
protected  Map<String,Object> getJndiContextMap(Map sharedContext)
           
protected static String getStringValue(org.apache.geronimo.xbeans.javaee.String string)
           
protected static String getStringValue(org.apache.geronimo.xbeans.javaee.XsdStringType string)
           
 void initContext(org.apache.xmlbeans.XmlObject specDD, org.apache.xmlbeans.XmlObject plan, Module module)
           
protected  boolean matchesDefaultEnvironment(Environment environment)
           
protected  boolean willMergeEnvironment(org.apache.xmlbeans.XmlObject specDD, org.apache.xmlbeans.XmlObject plan)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.geronimo.j2ee.deployment.NamingBuilder
buildNaming
 
Methods inherited from interface org.apache.geronimo.deployment.AbstractNamespaceBuilder
getPlanQNameSet, getSpecQNameSet
 

Field Detail

J2EE_NAMESPACE

protected static final String J2EE_NAMESPACE
See Also:
Constant Field Values

JEE_NAMESPACE

protected static final String JEE_NAMESPACE
See Also:
Constant Field Values

J2EE_CONVERTER

protected static final NamespaceElementConverter J2EE_CONVERTER

JEE_CONVERTER

protected static final NamespaceElementConverter JEE_CONVERTER

NAMING_CONVERTER

protected static final NamespaceElementConverter NAMING_CONVERTER
Constructor Detail

AbstractNamingBuilder

protected AbstractNamingBuilder()

AbstractNamingBuilder

protected AbstractNamingBuilder(Environment defaultEnvironment)
Method Detail

getEnvironment

public Environment getEnvironment()

buildEnvironment

public void buildEnvironment(org.apache.xmlbeans.XmlObject specDD,
                             org.apache.xmlbeans.XmlObject plan,
                             Environment environment)
                      throws DeploymentException
Specified by:
buildEnvironment in interface NamingBuilder
Throws:
DeploymentException

willMergeEnvironment

protected boolean willMergeEnvironment(org.apache.xmlbeans.XmlObject specDD,
                                       org.apache.xmlbeans.XmlObject plan)
                                throws DeploymentException
Throws:
DeploymentException

matchesDefaultEnvironment

protected boolean matchesDefaultEnvironment(Environment environment)

initContext

public void initContext(org.apache.xmlbeans.XmlObject specDD,
                        org.apache.xmlbeans.XmlObject plan,
                        Module module)
                 throws DeploymentException
Specified by:
initContext in interface NamingBuilder
Throws:
DeploymentException

getJndiContextMap

protected Map<String,Object> getJndiContextMap(Map sharedContext)

getGBeanName

protected AbstractName getGBeanName(Map sharedContext)

buildQNameSet

protected static org.apache.xmlbeans.QNameSet buildQNameSet(String[] eeNamespaces,
                                                            String localPart)

convert

protected static org.apache.xmlbeans.XmlObject[] convert(org.apache.xmlbeans.XmlObject[] xmlObjects,
                                                         NamespaceElementConverter converter,
                                                         org.apache.xmlbeans.SchemaType type)
                                                  throws DeploymentException
Deprecated. 

Parameters:
xmlObjects -
converter -
type -
Returns:
Throws:
DeploymentException

convert

protected static <T extends org.apache.xmlbeans.XmlObject> List<T> convert(org.apache.xmlbeans.XmlObject[] xmlObjects,
                                                                           NamespaceElementConverter converter,
                                                                           Class<T> c,
                                                                           org.apache.xmlbeans.SchemaType type)
                                                                throws DeploymentException
Throws:
DeploymentException

convert

protected static org.apache.xmlbeans.XmlObject convert(org.apache.xmlbeans.XmlObject xmlObject,
                                                       NamespaceElementConverter converter,
                                                       org.apache.xmlbeans.SchemaType type)
                                                throws DeploymentException
Throws:
DeploymentException

getStringValue

protected static String getStringValue(org.apache.geronimo.xbeans.javaee.String string)

getStringValue

protected static String getStringValue(org.apache.geronimo.xbeans.javaee.XsdStringType string)

buildAbstractNameQuery

public static AbstractNameQuery buildAbstractNameQuery(org.apache.geronimo.xbeans.geronimo.naming.GerPatternType pattern,
                                                       String type,
                                                       String moduleType,
                                                       Set interfaceTypes)

buildAbstractNameQuery

public static AbstractNameQuery buildAbstractNameQuery(Artifact configId,
                                                       String module,
                                                       String name,
                                                       String type,
                                                       String moduleType)

assureInterface

public static Class assureInterface(String interfaceName,
                                    String superInterfaceName,
                                    String interfaceType,
                                    ClassLoader cl)
                             throws DeploymentException
Throws:
DeploymentException

addInjections

protected void addInjections(String jndiName,
                             org.apache.geronimo.xbeans.javaee.InjectionTargetType[] injectionTargetArray,
                             Map sharedContext)

getConfigId

protected static Artifact[] getConfigId(Configuration localConfiguration,
                                        Configuration earConfiguration)


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.