Codota Logo
BundleDataFile.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.jboss.weld.environment.osgi.api.annotation.BundleDataFile
constructor

Best Java code snippets using org.jboss.weld.environment.osgi.api.annotation.BundleDataFile.<init> (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
origin: org.jboss.weld.osgi.tests/weld-osgi-bundle1

String symbolicName;
@Inject @BundleDataFile("test.txt")
File file;
origin: org.jboss.weld.osgi/weld-osgi-core-extension

@Produces
@BundleDataFile("")
public File getDataFile(BundleHolder holder, InjectionPoint p) {
  logger.trace("Entering OSGiUtilitiesProducer : getDataFile() "
      + "with parameters {} | {}",
         new Object[] {holder,p});
  Set<Annotation> qualifiers = p.getQualifiers();
  BundleDataFile file = null;
  for (Annotation qualifier : qualifiers) {
    if (qualifier.annotationType().equals(BundleDataFile.class)) {
      file = (BundleDataFile) qualifier;
      break;
    }
  }
  if (file.value().equals("")) {
    logger.warn("Returning null,"
          + " the BundleDataFile annotation path was empty");
    return null;
  }
  BundleContext context = getBundleContext(holder, p);
  if (context == null) {
    logger.warn("Returning null, unable to retrieve the BundleContext "
          + "for holder {} and injection point {}", holder, p);
    return null;
  }
  logger.debug("Returning the file {} from bundle context {}",
         file.value(),
         context);
  return context.getDataFile(file.value());
}
org.jboss.weld.environment.osgi.api.annotationBundleDataFile<init>

Popular methods of BundleDataFile

  • value

Popular in Java

  • Creating JSON documents from java classes using gson
  • onCreateOptionsMenu (Activity)
  • requestLocationUpdates (LocationManager)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • BoxLayout (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now