Tabnine Logo
WeldPortableExtensions.tryRegisterExtension
Code IndexAdd Tabnine to your IDE (free)

How to use
tryRegisterExtension
method
in
org.jboss.as.weld.deployment.WeldPortableExtensions

Best Java code snippets using org.jboss.as.weld.deployment.WeldPortableExtensions.tryRegisterExtension (Showing top 4 results out of 315)

origin: wildfly/wildfly

  continue;
extensions.tryRegisterExtension(extensionClass, deploymentUnit);
origin: wildfly/wildfly

      .tryRegisterExtension(loadClass(PROBE_EXTENSION_CLASS_NAME, module.getClassLoader()),
          deploymentUnit);
WeldPortableExtensions.getPortableExtensions(deploymentUnit).tryRegisterExtension(loadClass(PROBE_EXTENSION_CLASS_NAME, module.getClassLoader()),
    deploymentUnit);
origin: jboss-switchyard/release

private void checkExtension(final String extensionName, DeploymentUnit deploymentUnit, DeploymentUnit parent) throws DeploymentUnitProcessingException {
  final Module module = deploymentUnit.getAttachment(Attachments.MODULE);
  Class<?> extensionClass = null;
  try {
    extensionClass = module.getClassLoader().loadClass(extensionName);
  } catch (ClassNotFoundException cnfe) {
    throw new DeploymentUnitProcessingException(cnfe);
  }
  if (extensionClass != null) {
    WeldPortableExtensions extensions = WeldPortableExtensions.getPortableExtensions(deploymentUnit);
    extensions.tryRegisterExtension(extensionClass, deploymentUnit);
  } else {
    throw ExtensionMessages.MESSAGES.extensionNotfound(extensionName);
  }
}
origin: org.switchyard/switchyard-deploy-jboss-as7

private void checkExtension(final String extensionName, DeploymentUnit deploymentUnit, DeploymentUnit parent) throws DeploymentUnitProcessingException {
  final Module module = deploymentUnit.getAttachment(Attachments.MODULE);
  Class<?> extensionClass = null;
  try {
    extensionClass = module.getClassLoader().loadClass(extensionName);
  } catch (ClassNotFoundException cnfe) {
    throw new DeploymentUnitProcessingException(cnfe);
  }
  if (extensionClass != null) {
    WeldPortableExtensions extensions = WeldPortableExtensions.getPortableExtensions(deploymentUnit);
    extensions.tryRegisterExtension(extensionClass, deploymentUnit);
  } else {
    throw ExtensionMessages.MESSAGES.extensionNotfound(extensionName);
  }
}
org.jboss.as.weld.deploymentWeldPortableExtensionstryRegisterExtension

Popular methods of WeldPortableExtensions

  • getPortableExtensions
  • registerExtensionInstance
  • <init>
  • getExtensions

Popular in Java

  • Running tasks concurrently on multiple threads
  • putExtra (Intent)
  • getSupportFragmentManager (FragmentActivity)
  • requestLocationUpdates (LocationManager)
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JFileChooser (javax.swing)
  • JFrame (javax.swing)
  • Best IntelliJ plugins
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