Tabnine Logo
BundleDataFile.<init>
Code IndexAdd Tabnine 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)

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

  • Reactive rest calls using spring rest template
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSystemService (Context)
  • setScale (BigDecimal)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Top plugins for WebStorm
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