public class ApplicationContextConfiguration
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private boolean |
asyncCreation |
private org.osgi.framework.Bundle |
bundle |
private java.lang.String[] |
configurationLocations |
private ConfigurationScanner |
configurationScanner |
private boolean |
hasTimeout |
private boolean |
isSpringPoweredBundle |
private static org.apache.commons.logging.Log |
log
logger
|
private boolean |
publishContextAsService |
private long |
timeout |
private java.lang.String |
toString |
private boolean |
waitForDeps |
| Constructor and Description |
|---|
ApplicationContextConfiguration(org.osgi.framework.Bundle bundle)
Constructs a new
ApplicationContextConfiguration instance from the given bundle. |
ApplicationContextConfiguration(org.osgi.framework.Bundle bundle,
ConfigurationScanner configurationScanner) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getConfigurationLocations()
Returns the locations of the configuration resources used to build the application context (as Spring resource
paths).
|
long |
getTimeout()
Returns the timeout (in milliseconds) an application context needs to wait for mandatory dependent services.
|
boolean |
isCreateAsynchronously()
Indicates if an application context needs to be created asynchronously or not.
|
boolean |
isPublishContextAsService()
Indicates if the application context needs to be published as a service or not.
|
boolean |
isSpringPoweredBundle()
Indicates if the given bundle is "Spring-Powered" or not.
|
boolean |
isTimeoutDeclared() |
boolean |
isWaitForDependencies()
Indicates if the configuration must wait for dependencies.
|
java.lang.String |
toString() |
private static final org.apache.commons.logging.Log log
private final org.osgi.framework.Bundle bundle
private final ConfigurationScanner configurationScanner
private final boolean asyncCreation
private final java.lang.String[] configurationLocations
private final boolean isSpringPoweredBundle
private final boolean publishContextAsService
private final boolean waitForDeps
private final java.lang.String toString
private final long timeout
private final boolean hasTimeout
public ApplicationContextConfiguration(org.osgi.framework.Bundle bundle)
ApplicationContextConfiguration instance from the given bundle. Uses the
DefaultConfigurationScanner internally for discovering Spring-powered bundles.bundle - bundle for which the application context configuration is createdpublic ApplicationContextConfiguration(org.osgi.framework.Bundle bundle,
ConfigurationScanner configurationScanner)
public boolean isSpringPoweredBundle()
public boolean isTimeoutDeclared()
public long getTimeout()
public boolean isCreateAsynchronously()
public boolean isPublishContextAsService()
public boolean isWaitForDependencies()
public java.lang.String[] getConfigurationLocations()
public java.lang.String toString()
toString in class java.lang.Object