org.ops4j.pax.runner.platform
Class SystemFileReferenceBean

java.lang.Object
  extended by org.ops4j.pax.runner.platform.SystemFileReferenceBean
All Implemented Interfaces:
SystemFileReference

public class SystemFileReferenceBean
extends java.lang.Object
implements SystemFileReference

A Java bean like implementation of system file reference.

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

Constructor Summary
SystemFileReferenceBean(java.lang.String name, java.net.URL url)
          Create a new bundle reference based on url with the name from the corresponding parameter, appended
SystemFileReferenceBean(java.lang.String name, java.net.URL url, java.lang.Boolean prepend)
          Creates a new system file reference.
SystemFileReferenceBean(java.net.URL url)
          Create a new bundle reference based on url, appended.
 
Method Summary
 boolean equals(java.lang.Object object)
           
 java.lang.String getName()
          Returns the name to the system file to be installed.
 java.net.URL getURL()
          Returns the url to the system file to be installed.
 void setName(java.lang.String name)
           
 void setURL(java.net.URL url)
           
 java.lang.Boolean shouldPrepend()
          Should the system file be in the classpath appended or prepended to framework system file.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SystemFileReferenceBean

public SystemFileReferenceBean(java.net.URL url)
Create a new bundle reference based on url, appended.

Parameters:
url - bundle location

SystemFileReferenceBean

public SystemFileReferenceBean(java.lang.String name,
                               java.net.URL url)
Create a new bundle reference based on url with the name from the corresponding parameter, appended

Parameters:
name - a nice ready to print bundle m_name; optional
url - bundle location

SystemFileReferenceBean

public SystemFileReferenceBean(java.lang.String name,
                               java.net.URL url,
                               java.lang.Boolean prepend)
Creates a new system file reference.

Parameters:
name - a nice ready to print sytem file name; optional
url - bundle location
prepend - if the system file should be prepended to the classpath
Method Detail

getName

public java.lang.String getName()
Description copied from interface: SystemFileReference
Returns the name to the system file to be installed. Name is used for nice diplaying when required, as for example when downloading the reference to a local system file directory.

Specified by:
getName in interface SystemFileReference
Returns:
an name

getURL

public java.net.URL getURL()
Description copied from interface: SystemFileReference
Returns the url to the system file to be installed.

Specified by:
getURL in interface SystemFileReference
Returns:
an url

shouldPrepend

public java.lang.Boolean shouldPrepend()
Description copied from interface: SystemFileReference
Should the system file be in the classpath appended or prepended to framework system file.

Specified by:
shouldPrepend in interface SystemFileReference
Returns:
true, if the system file should be prepended

setName

public void setName(java.lang.String name)

setURL

public void setURL(java.net.URL url)

equals

public boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(Object)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


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