org.eclipse.mtj.core.persistence
Interface IBundleReferencePersistable
-
All Superinterfaces:
-
IPersistable
-
public interface IBundleReferencePersistable
- extends
IPersistable
Classes that implement the IBundleReferencePersistable interface are standard
IPersistable classes that must also be able to provide a reference to the
bundle from which they may be loaded.
-
Since:
- 1.0
Method Summary
|
String
|
getBundle
()
Return the bundle identifier that should be used to load this
persistable. |
void
|
setBundle
(
String bundle)
Set the bundle identifier that is used to load this persistable. |
BUNDLE_PERSISTABLE_ATTRIBUTE
static final
String BUNDLE_PERSISTABLE_ATTRIBUTE
- The persistable attribute id for storing the bundle identifier.
-
See Also:
-
Constant Field Values
getBundle
String getBundle()
- Return the bundle identifier that should be used to load this
persistable. The bundle identifier must be the symbolic name of that
bundle as specified by its
Bundle-SymbolicName
manifest
header.
Clients must always return a valid bundle identifier in order to MTJ
correctly load that bundle.
The symbolic name of a bundle may be retrieved using the
Bundle#getSymbolicName()
method.
-
-
-
Returns:
- the symbolic name of the bundle that should be used to load this
persistable.
setBundle
void setBundle(
String bundle)
- Set the bundle identifier that is used to load this persistable. The
bundle identifier must be the symbolic name of that bundle as specified
by its
Bundle-SymbolicName
manifest header.
The symbolic name of a bundle may be retrieved using the
Bundle#getSymbolicName()
method.
-
-
-
Parameters:
-
bundle
- a valid bundle identifier.