abstract class AbstractServiceImporterProxyFactoryBean extends AbstractOsgiServiceImportFactoryBean implements org.springframework.beans.factory.SmartFactoryBean<java.lang.Object>
| Modifier and Type | Field and Description |
|---|---|
private ChainedClassLoader |
aopClassLoader
aop classloader
|
private boolean |
blueprintCompliant |
private boolean |
initialized |
private boolean |
lazyProxy |
protected java.lang.Object |
proxy |
private boolean |
useBlueprintException |
| Constructor and Description |
|---|
AbstractServiceImporterProxyFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
(package private) abstract java.lang.Object |
createProxy(boolean lazy)
Creates the proxy tracking the matching OSGi services.
|
void |
destroy() |
(package private) java.lang.ClassLoader |
getAopClassLoader()
Returns the class loader used for AOP weaving
|
java.lang.Object |
getObject()
Returns a managed object for accessing OSGi service(s).
|
java.lang.Class<?> |
getObjectType()
Returns the managed proxy type.
|
(package private) abstract java.lang.Runnable |
getProxyDestructionCallback()
Returns the destruction callback associated with the proxy created by this object.
|
(package private) abstract java.lang.Runnable |
getProxyInitializer()
Returns a callback to the proxy which gets called when the proxy is called for the first time, if a lazy creation
was used.
|
(package private) boolean |
isBlueprintCompliant() |
boolean |
isEagerInit()
The object created by this factory bean is eagerly initialized.
|
boolean |
isPrototype()
The object returned by this FactoryBean is a not a prototype.
|
boolean |
isSingleton()
The object managed by this factory is a singleton.
|
(package private) boolean |
isUseBlueprintExceptions() |
void |
setBeanClassLoader(java.lang.ClassLoader classLoader)
This method is called automatically by the container.
|
void |
setBlueprintCompliant(boolean compliant)
Indicates whether the importer should use (strict) blueprint spec compliance or not.
|
void |
setUseBlueprintExceptions(boolean useBlueprintExceptions)
Indicates whether Blueprint exceptions are preferred over Spring DM ones.
|
getAvailability, getBeanClassLoader, getBeanName, getBundleContext, getCardinality, getContextClassLoader, getFilter, getImportContextClassLoader, getInterfaces, getInternalCardinality, getListeners, getUnifiedFilter, setAvailability, setBeanName, setBundleContext, setCardinality, setContextClassLoader, setFilter, setImportContextClassLoader, setInterfaces, setListeners, setServiceBeanNameprivate volatile boolean initialized
protected java.lang.Object proxy
private boolean useBlueprintException
private volatile boolean lazyProxy
private ChainedClassLoader aopClassLoader
private boolean blueprintCompliant
AbstractServiceImporterProxyFactoryBean()
public void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanafterPropertiesSet in class AbstractOsgiServiceImportFactoryBeanpublic void destroy()
throws java.lang.Exception
destroy in interface org.springframework.beans.factory.DisposableBeanjava.lang.Exceptionpublic java.lang.Object getObject()
getObject in interface org.springframework.beans.factory.FactoryBean<java.lang.Object>public java.lang.Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<java.lang.Object>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<java.lang.Object>public boolean isEagerInit()
isEagerInit in interface org.springframework.beans.factory.SmartFactoryBean<java.lang.Object>public boolean isPrototype()
isPrototype in interface org.springframework.beans.factory.SmartFactoryBean<java.lang.Object>abstract java.lang.Object createProxy(boolean lazy)
lazy - indicates whether the proxy is lazy (no code is executed in the proxy) or notgetProxyDestructionCallback()abstract java.lang.Runnable getProxyInitializer()
abstract java.lang.Runnable getProxyDestructionCallback()
FactoryBean.#createProxy()java.lang.ClassLoader getAopClassLoader()
public void setBeanClassLoader(java.lang.ClassLoader classLoader)
setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAwaresetBeanClassLoader in class AbstractOsgiServiceImportFactoryBeanpublic void setUseBlueprintExceptions(boolean useBlueprintExceptions)
useBlueprintExceptions - boolean isUseBlueprintExceptions()
public void setBlueprintCompliant(boolean compliant)
compliant - boolean isBlueprintCompliant()