|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ow2.jonas.services.bootstrap.JOnASConfiguration
public class JOnASConfiguration
JOnAS Configuration component.
Field Summary |
---|
Fields inherited from interface org.osgi.service.cm.ConfigurationPlugin |
---|
CM_RANKING, CM_TARGET |
Constructor Summary | |
---|---|
JOnASConfiguration(org.osgi.framework.BundleContext bc)
Constructor used to retrieve the OSGi BundleContext. |
Method Summary | |
---|---|
void |
configure()
Method called when the Configuration Admin Service is bound to the component. |
void |
deleteServiceConfiguration(String service)
Delete the service configuration for the given service. |
List<String> |
getAllServices()
Get all services. |
List<String> |
getMandatoryServices()
Get mandatory services. |
List<String> |
getOptionalServices()
Get optional services. |
Dictionary<String,String> |
getServiceProperties(String service)
Get all properties for a given JOnAS service name. |
void |
haltServer()
Halt server by stopping the system bundle. |
boolean |
matchService(String service)
Return true if the given service matches a JOnAS service |
void |
modifyConfiguration(org.osgi.framework.ServiceReference serviceReference,
Dictionary storedProperties)
|
void |
setConfigurationAdmin(org.osgi.service.cm.ConfigurationAdmin configurationAdmin)
|
void |
updateServiceConfiguration(String service)
Create or update the service configuration for the given service. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JOnASConfiguration(org.osgi.framework.BundleContext bc)
bc
- OSGi BundleContextMethod Detail |
---|
public void configure() throws Exception
Exception
- Thrown if the configuration failed.public void haltServer() throws Exception
haltServer
in interface ConfigurationManager
Exception
- If an exception occurs during server haltingpublic void updateServiceConfiguration(String service) throws Exception
updateServiceConfiguration
in interface ConfigurationManager
service
- the service name
Exception
- If an exception occurs during configuration updatespublic void deleteServiceConfiguration(String service) throws Exception
deleteServiceConfiguration
in interface ConfigurationManager
service
- the service name
Exception
- If an exception occurs during configuration deletionspublic boolean matchService(String service)
matchService
in interface ConfigurationManager
service
- The service name
public List<String> getMandatoryServices()
getMandatoryServices
in interface ConfigurationManager
public List<String> getAllServices()
getAllServices
in interface ConfigurationManager
public List<String> getOptionalServices()
getOptionalServices
in interface ConfigurationManager
public Dictionary<String,String> getServiceProperties(String service)
getServiceProperties
in interface ConfigurationManager
service
- The given service name
Dictionary
value representing all properties for a JOnAS service namepublic void modifyConfiguration(org.osgi.framework.ServiceReference serviceReference, Dictionary storedProperties)
modifyConfiguration
in interface org.osgi.service.cm.ConfigurationPlugin
public void setConfigurationAdmin(org.osgi.service.cm.ConfigurationAdmin configurationAdmin)
configurationAdmin
- the configurationAdmin to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |