Tabnine Logo
BeanMetaData.getClassLoader
Code IndexAdd Tabnine to your IDE (free)

How to use
getClassLoader
method
in
org.jboss.beans.metadata.spi.BeanMetaData

Best Java code snippets using org.jboss.beans.metadata.spi.BeanMetaData.getClassLoader (Showing top 5 results out of 315)

origin: org.jboss.microcontainer/jboss-kernel

/**
* Get the classloader for some BeanMetaData
*
* @param metaData the metaData
* @return the classloader
* @throws Throwable for any error
*/
public static ClassLoader getClassLoader(BeanMetaData metaData) throws Throwable
{
 ClassLoaderMetaData clmd = null;
 if (metaData != null)
   clmd = metaData.getClassLoader();
 return getClassLoader(clmd);
}
origin: org.jboss.deployers/jboss-deployers-vfs

protected DeploymentUnit addComponent(DeploymentUnit unit, BeanMetaData attachment)
{
 DeploymentUnit component = super.addComponent(unit, attachment);
 String className = attachment.getBean();
 if (className != null)
 {
   Object qualifier;
   if (attachment.getClassLoader() == null)
   {
    ClassLoader cl = unit.getClassLoader();
    try
    {
      qualifier = cl.loadClass(className);
    }
    catch (Exception e)
    {
      throw new IllegalArgumentException("Exception loading class for ScopeKey addition.", e);              
    }
   }
   else
   {
    qualifier = className;
   }
   component.getScope().addScope(CommonLevels.CLASS, qualifier);
 }
 return component;
}
origin: org.jboss.deployers/jboss-deployers-vfs

@Override
public void undeploy(DeploymentUnit unit, BeanMetaData deployment)
{
 BeanMetaDataDeployerPlugin plugin = deployedWithPlugin.remove(deployment.getName());
 if (plugin == null || plugin.uninstallContext(controller, unit, deployment) == false)
 {
   ControllerContext context = controller.uninstall(deployment.getName());
   removeContext(context, unit.getParent());
 }
 
 // Remove any classloader metadata we added (not necessary if we clone above)
 ClassLoaderMetaData classLoader = deployment.getClassLoader();
 if (classLoader instanceof DeploymentClassLoaderMetaData)
   deployment.setClassLoader(null);
}
origin: org.jboss.microcontainer/jboss-kernel

if (classLoaderBean.getClassLoader() == null)
  classLoaderBean.setClassLoader(new AbstractClassLoaderMetaData(new AbstractValueMetaData()));
result.add((BeanMetaData) classLoader);
   ClassLoaderMetaData beanClassLoader = bmd.getClassLoader();
   if (beanClassLoader == null)
origin: org.jboss.deployers/jboss-deployers-vfs

if (deployment.getClassLoader() == null)
org.jboss.beans.metadata.spiBeanMetaDatagetClassLoader

Javadoc

Get the bean ClassLoader

Popular methods of BeanMetaData

  • getName
    Get the name
  • getDepends
    Get what this bean depends.
  • getProperties
    Get the properties.
  • getSupplies
    Get what this bean supplies.
  • getAnnotations
    Get the annotations
  • getBean
    Get the bean.
  • getConstructor
    Get the constructor
  • getDemands
    Get what this bean demands.
  • setClassLoader
    Set the bean ClassLoader
  • clone
  • describeVisit
  • getAccessMode
    Get the access mode
  • describeVisit,
  • getAccessMode,
  • getAliases,
  • getCreate,
  • getDestroy,
  • getErrorHandlingMode,
  • getInstalls,
  • getMode,
  • getRelated

Popular in Java

  • Start an intent from android
  • requestLocationUpdates (LocationManager)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • runOnUiThread (Activity)
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now