org.jboss.ejb3.common.metadata
Class MetadataUtil

java.lang.Object
  extended by org.jboss.ejb3.common.metadata.MetadataUtil

public class MetadataUtil
extends Object

MetadataUtil Contains helper methods central to EJB3 metadata

Version:
$Revision: $
Author:
ALR

Method Summary
static void decorateEjbsWithJndiPolicy(org.jboss.metadata.ejb.jboss.JBossMetaData md, ClassLoader cl)
          Wraps all EJBs in the specified metadata with JNDI Resolution logic as determined by the specified policy
protected static org.jboss.metadata.ejb.jboss.jndipolicy.spi.DefaultJndiBindingPolicy getJndiBindingPolicy(org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData md, String deployableUnitDefaultJndiPolicyClassName, ClassLoader cl)
          Obtains the JNDI Binding Policy instance to use for the specified metadata, defaulting to a BasicJndiBindingPolicy if none is explicitly specified either in the metadata itself or in its parent deployable unit
static org.jboss.metadata.process.chain.ProcessorChain<org.jboss.metadata.ejb.jboss.JBossMetaData> getPostMergeMetadataProcessorChain(ClassLoader cl)
          Obtains the ProcessorChain to be run upon a fully-merged metadata
static Collection<org.jboss.metadata.process.processor.JBossMetaDataProcessor<org.jboss.metadata.ejb.jboss.JBossMetaData>> getPostMergeMetadataProcessors(ClassLoader cl)
          Obtains the processors to be applied to metadata once merging is complete
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getPostMergeMetadataProcessors

public static Collection<org.jboss.metadata.process.processor.JBossMetaDataProcessor<org.jboss.metadata.ejb.jboss.JBossMetaData>> getPostMergeMetadataProcessors(ClassLoader cl)
Obtains the processors to be applied to metadata once merging is complete


getPostMergeMetadataProcessorChain

public static org.jboss.metadata.process.chain.ProcessorChain<org.jboss.metadata.ejb.jboss.JBossMetaData> getPostMergeMetadataProcessorChain(ClassLoader cl)
Obtains the ProcessorChain to be run upon a fully-merged metadata

Parameters:
cl -
Returns:

decorateEjbsWithJndiPolicy

public static void decorateEjbsWithJndiPolicy(org.jboss.metadata.ejb.jboss.JBossMetaData md,
                                              ClassLoader cl)
Wraps all EJBs in the specified metadata with JNDI Resolution logic as determined by the specified policy

Parameters:
metadata -

getJndiBindingPolicy

protected static org.jboss.metadata.ejb.jboss.jndipolicy.spi.DefaultJndiBindingPolicy getJndiBindingPolicy(org.jboss.metadata.ejb.jboss.JBossEnterpriseBeanMetaData md,
                                                                                                           String deployableUnitDefaultJndiPolicyClassName,
                                                                                                           ClassLoader cl)
Obtains the JNDI Binding Policy instance to use for the specified metadata, defaulting to a BasicJndiBindingPolicy if none is explicitly specified either in the metadata itself or in its parent deployable unit

Parameters:
md - The Bean Metadata
deployableUnitDefaultJndiPolicyClassName - The (optional) JNDI Policy declared by the deployable unit (JBossMetaData)
cl - The Deployable Unit's ClassLoader


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.