org.ops4j.pax.runner.platform.internal
Class LocalSystemFileImpl

java.lang.Object
  extended by org.ops4j.pax.runner.platform.internal.LocalSystemFileImpl
All Implemented Interfaces:
LocalSystemFile

public class LocalSystemFileImpl
extends java.lang.Object
implements LocalSystemFile

A Java bean like implementation of local system file.

Since:
0.15.0, October 28, 2007
Author:
Alin Dreghiciu

Constructor Summary
LocalSystemFileImpl(SystemFileReference systemFileReference, java.io.File file)
          Creates a new local bundle.
 
Method Summary
 java.io.File getFile()
          Returns the file corresponding to the system file.
 SystemFileReference getSystemFileReference()
          Returns the system file reference this file is refering to.
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LocalSystemFileImpl

public LocalSystemFileImpl(SystemFileReference systemFileReference,
                           java.io.File file)
Creates a new local bundle.

Parameters:
systemFileReference - a bundle reference; mandatory
file - corresponding file; mandatory
Method Detail

getSystemFileReference

public SystemFileReference getSystemFileReference()
Returns the system file reference this file is refering to.

Specified by:
getSystemFileReference in interface LocalSystemFile
Returns:
the system file reference

getFile

public java.io.File getFile()
Returns the file corresponding to the system file.

Specified by:
getFile in interface LocalSystemFile
Returns:
an file

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object


Copyright © 2006-2011 OPS4J - Open Participation Software for Java. All Rights Reserved.