org.jboss.osgi.metadata
Class NativeLibrary

java.lang.Object
  extended by org.jboss.osgi.metadata.NativeLibrary
All Implemented Interfaces:
Serializable

public class NativeLibrary
extends Object
implements Serializable

Meta data for native code libraries as defined by OSGi R4V42. 3.9 Loading Native Code Libraries http://www.osgi.org/Download/File?url=/download/r4v42/r4.core.pdf

Since:
21-Jan-2010
Version:
$Revision$
Author:
thomas.diesler@jboss.com
See Also:
Serialized Form

Constructor Summary
NativeLibrary(List<String> osNames, String libraryPath, String librarySource)
          Create a NativeCode instance with mandatory properties.
 
Method Summary
 List<String> getLanguages()
           
 String getLibraryPath()
           
 String getLibrarySource()
           
 List<String> getOsNames()
           
 List<VersionRange> getOsVersions()
           
 List<String> getProcessors()
           
 String getSelectionFilter()
           
 boolean isOptional()
           
 void setLanguages(List<String> languages)
           
 void setOptional(boolean optional)
           
 void setOsVersions(List<VersionRange> osVersions)
           
 void setProcessors(List<String> processors)
           
 void setSelectionFilter(String selectionFilter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NativeLibrary

public NativeLibrary(List<String> osNames,
                     String libraryPath,
                     String librarySource)
Create a NativeCode instance with mandatory properties.

Parameters:
osNames - The set of OS names
libraryPath - The library path
librarySource - An interface from which to retrieve the actual library location
Method Detail

getLibrarySource

public String getLibrarySource()

getLibraryPath

public String getLibraryPath()

getOsNames

public List<String> getOsNames()

getOsVersions

public List<VersionRange> getOsVersions()

setOsVersions

public void setOsVersions(List<VersionRange> osVersions)

getProcessors

public List<String> getProcessors()

setProcessors

public void setProcessors(List<String> processors)

setLanguages

public void setLanguages(List<String> languages)

getLanguages

public List<String> getLanguages()

getSelectionFilter

public String getSelectionFilter()

setSelectionFilter

public void setSelectionFilter(String selectionFilter)

isOptional

public boolean isOptional()

setOptional

public void setOptional(boolean optional)


Copyright © 2010. All Rights Reserved.