org.norther.tammi.core.external
Interface Library

All Known Subinterfaces:
NativeRealm
All Known Implementing Classes:
DefaultLibrary, DefaultNativeRealm

public interface Library

An interface to native libraries.

Version:
$Id: Library.java,v 1.12 2009/09/28 15:08:46 cvsimp Exp $
Author:
Ilkka Priha

Method Summary
 String getBinKey()
          Gets the path finder key for resolving binary paths.
 int getLibrary()
          Gets the library code.
 String getLibraryPath()
          Gets the path to the native library.
 String getLoaderPath()
          Gets the static path to the loader library.
 void setBinKey(String key)
          Sets the path finder key for resolving binary paths.
 void setLibraryPath(String path)
          Sets the path to the native library.
 void setLoaderPath(String path)
          Sets the static path to the loader library.
 

Method Detail

getBinKey

String getBinKey()
Gets the path finder key for resolving binary paths.

Returns:
the path finder key.

setBinKey

void setBinKey(String key)
Sets the path finder key for resolving binary paths. The default key is PathFinderMBean.BIN.

Parameters:
key - the path finder key.

getLoaderPath

String getLoaderPath()
Gets the static path to the loader library.

Returns:
the path to the loader library.

setLoaderPath

void setLoaderPath(String path)
                   throws LogException
Sets the static path to the loader library.

Parameters:
path - the path to the loader library.
Throws:
LogException - if the library cannot be set.

getLibraryPath

String getLibraryPath()
Gets the path to the native library.

Returns:
the path to the native library.

setLibraryPath

void setLibraryPath(String path)
Sets the path to the native library.

Parameters:
path - the path to the native library.

getLibrary

int getLibrary()
Gets the library code.

Returns:
the library code.
Throws:
UnsatisfiedLinkError - if no loader.
NullPointerException - if no library.
IllegalArgumentException - if not available.
UnsupportedOperationException - if failed to initialize.


Copyright © 2004 The Norther Organization. All rights reserved.