Tabnine Logo
ConstructorManagedReferenceFactory
Code IndexAdd Tabnine to your IDE (free)

How to use
ConstructorManagedReferenceFactory
in
org.jboss.as.naming

Best Java code snippets using org.jboss.as.naming.ConstructorManagedReferenceFactory (Showing top 6 results out of 315)

origin: wildfly/wildfly

  @Override
  public ManagedReferenceFactory run() {
    try {
      return new ConstructorManagedReferenceFactory(clazz.getDeclaredConstructor());
    } catch (NoSuchMethodException e) {
      throw new RuntimeException(e);
    }
  }
});
origin: wildfly/wildfly

@Override
public ManagedReferenceFactory createFactory(final Class<?> clazz) {
  if (WildFlySecurityManager.isChecking()) {
    // Execute in a privileged block for executions, such as JSP's, that do not copy the security
    // context/protection domains onto class loaders. The permission check is done on the constructor.
    return AccessController.doPrivileged(new PrivilegedAction<ManagedReferenceFactory>() {
      @Override
      public ManagedReferenceFactory run() {
        try {
          return new ConstructorManagedReferenceFactory(clazz.getDeclaredConstructor());
        } catch (NoSuchMethodException e) {
          throw new RuntimeException(e);
        }
      }
    });
  } else {
    try {
      return new ConstructorManagedReferenceFactory(clazz.getDeclaredConstructor());
    } catch (NoSuchMethodException e) {
      throw new RuntimeException(e);
    }
  }
}
origin: org.wildfly/wildfly-ee

  @Override
  public ManagedReferenceFactory run() {
    try {
      return new ConstructorManagedReferenceFactory(clazz.getDeclaredConstructor());
    } catch (NoSuchMethodException e) {
      throw new RuntimeException(e);
    }
  }
});
origin: org.jboss.eap/wildfly-ee

  @Override
  public ManagedReferenceFactory run() {
    try {
      return new ConstructorManagedReferenceFactory(clazz.getDeclaredConstructor());
    } catch (NoSuchMethodException e) {
      throw new RuntimeException(e);
    }
  }
});
origin: org.wildfly/wildfly-ee

@Override
public ManagedReferenceFactory createFactory(final Class<?> clazz) {
  if (WildFlySecurityManager.isChecking()) {
    // Execute in a privileged block for executions, such as JSP's, that do not copy the security
    // context/protection domains onto class loaders. The permission check is done on the constructor.
    return AccessController.doPrivileged(new PrivilegedAction<ManagedReferenceFactory>() {
      @Override
      public ManagedReferenceFactory run() {
        try {
          return new ConstructorManagedReferenceFactory(clazz.getDeclaredConstructor());
        } catch (NoSuchMethodException e) {
          throw new RuntimeException(e);
        }
      }
    });
  } else {
    try {
      return new ConstructorManagedReferenceFactory(clazz.getDeclaredConstructor());
    } catch (NoSuchMethodException e) {
      throw new RuntimeException(e);
    }
  }
}
origin: org.jboss.eap/wildfly-ee

@Override
public ManagedReferenceFactory createFactory(final Class<?> clazz) {
  if (WildFlySecurityManager.isChecking()) {
    // Execute in a privileged block for executions, such as JSP's, that do not copy the security
    // context/protection domains onto class loaders. The permission check is done on the constructor.
    return AccessController.doPrivileged(new PrivilegedAction<ManagedReferenceFactory>() {
      @Override
      public ManagedReferenceFactory run() {
        try {
          return new ConstructorManagedReferenceFactory(clazz.getDeclaredConstructor());
        } catch (NoSuchMethodException e) {
          throw new RuntimeException(e);
        }
      }
    });
  } else {
    try {
      return new ConstructorManagedReferenceFactory(clazz.getDeclaredConstructor());
    } catch (NoSuchMethodException e) {
      throw new RuntimeException(e);
    }
  }
}
org.jboss.as.namingConstructorManagedReferenceFactory

Javadoc

Managed reference that creates an instance from the constructor.

Most used methods

  • <init>

Popular in Java

  • Start an intent from android
  • findViewById (Activity)
  • setContentView (Activity)
  • requestLocationUpdates (LocationManager)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top 12 Jupyter Notebook extensions
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