|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Framework
FrameWork may be used to access the serviceframework from the outside (eg servlet / spring bean) independent of OSGi framework implementation. FIXME: is the a servicecontainer or a frameworkconfig... maybe split it up?
| Field Summary | |
|---|---|
static java.lang.String |
CLUSTERING_NODEID_PROP
Java setting key used to configure the cluster wide unique identifier for this instance. |
static java.lang.String |
CLUSTERING_READONLY_PROP
Java setting key used to configure an instance as master or slave. |
| Method Summary | |
|---|---|
java.lang.String |
getBaseDirectory()
Get the applications basedirectorty. |
java.lang.String |
getBundleDirectory()
Get the framework bundledirectorty. |
java.lang.String |
getCacheDirectory()
Get the framework cachedirectorty. |
java.lang.String |
getClusterNodeId()
Provides the configured cluster identifier for this node. |
java.lang.String |
getEditionDirectory()
Get the framework edition bundle directory. |
java.lang.String |
getRepositoryDirectory()
Get the JCR repositorydirectorty. |
java.lang.Object |
getService(java.lang.String name)
Provide an easy access to services based on service name. |
java.lang.Object |
getService(java.lang.String name,
java.lang.String filter)
Provides easy access to services based on service name and optional filter. |
java.lang.Object[] |
getServices(java.lang.String name)
Provide an easy access to services based on service name. |
java.lang.Object[] |
getServices(java.lang.String name,
java.lang.String filter)
Provides easy access to services based on service name and optional filter. |
java.lang.String |
getWebrootDirectory()
Get the webrootdirectory. |
boolean |
isAvailable()
Check whether the OSGi impl is running and available. |
boolean |
isClusterMasterNode()
Indicates if this instance is a master node. |
boolean |
isStarting()
Check whether the framework is starting up. |
void |
setBaseDirectory(java.lang.String path)
Set the applications basedirectorty. |
void |
setBundleDirectory(java.lang.String path)
Set the framework bundledirectorty. |
void |
setCacheDirectory(java.lang.String path)
Set the applications cachedirectorty. |
void |
setEditionDirectory(java.lang.String path)
Set the framework edition bundle directory. |
void |
setFrameworkStartLevel(int startLevel,
boolean blocking)
Changes the active start level of the OSGi framework. |
void |
setInstallMap(java.util.Map<java.lang.Integer,java.util.List<java.lang.String>> installMap)
Public setter provided for DI. |
void |
setProperties(java.util.Properties properties)
Public setter provided for DI. |
void |
setRepositoryDirectory(java.lang.String path)
Set the applications JCR repositorydirectorty. |
void |
setWebrootDirectory(java.lang.String path)
Set the applications webrootdirectory. |
void |
start()
Start the OSGi impl. |
void |
stop()
Stop the OSGi impl. |
| Field Detail |
|---|
static final java.lang.String CLUSTERING_READONLY_PROP
static final java.lang.String CLUSTERING_NODEID_PROP
| Method Detail |
|---|
void start()
throws FrameworkException
FrameworkException - when start fails
void stop()
throws FrameworkException
FrameworkException - when shutdown failsboolean isStarting()
boolean isAvailable()
void setBaseDirectory(java.lang.String path)
throws ConfigurationException
path - absolute path to the basedirectory on the filesystem.
ConfigurationException - when the directory is not accessiblejava.lang.String getBaseDirectory()
void setBundleDirectory(java.lang.String path)
throws ConfigurationException
path - absolute path to the bundledirectory on the filesystem.
ConfigurationException - when the directory is not accessiblejava.lang.String getEditionDirectory()
void setEditionDirectory(java.lang.String path)
throws ConfigurationException
path - absolute path to the edition bundle on the filesystem.
ConfigurationException - when the directory is not accessiblejava.lang.String getBundleDirectory()
void setCacheDirectory(java.lang.String path)
throws ConfigurationException
path - absolute path to the cachedirectory on the filesystem.
ConfigurationException - when the directory is not accessiblejava.lang.String getCacheDirectory()
void setRepositoryDirectory(java.lang.String path)
throws ConfigurationException
path - absolute path to the repositorydirectorty on the filesystem.
ConfigurationException - when the directory is not accessiblejava.lang.String getWebrootDirectory()
void setWebrootDirectory(java.lang.String path)
throws ConfigurationException
path - absolute path to the webrootdirectory on the filesystem.
ConfigurationException - when the directory is not accessiblejava.lang.String getRepositoryDirectory()
void setProperties(java.util.Properties properties)
properties - startupproperties provided for the concrete framework
implementation.void setInstallMap(java.util.Map<java.lang.Integer,java.util.List<java.lang.String>> installMap)
installMap - map containing bundlenames to be installed for any startlevel.
java.lang.Object getService(java.lang.String name)
throws FrameworkException
name - fully qualified name of the requested service interface.
java.lang.Exception - when something went wrong
FrameworkException
java.lang.Object getService(java.lang.String name,
java.lang.String filter)
throws FrameworkException
name - fully qualified name of the requested service interfacefilter - LDAP filter for serviceregistration
java.lang.Exception - when something went wrong
FrameworkException
java.lang.Object[] getServices(java.lang.String name)
throws FrameworkException
name - fully qualified name of the requested service interface.
java.lang.Exception - when something went wrong
FrameworkException
java.lang.Object[] getServices(java.lang.String name,
java.lang.String filter)
throws FrameworkException
name - fully qualified name of the requested service interfacefilter - LDAP filter for serviceregistration
java.lang.Exception - when something went wrong
FrameworkException
void setFrameworkStartLevel(int startLevel,
boolean blocking)
startLevel - the start level to set the framwork start level to.blocking - if true, wait for the framework to reach the new startlevel.boolean isClusterMasterNode()
java.lang.String getClusterNodeId()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||