public final class OsgiServiceProxyFactoryBean extends AbstractOsgiServiceImportFactoryBean implements org.springframework.context.ApplicationEventPublisherAware
| Constructor and Description |
|---|
OsgiServiceProxyFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
destroy() |
Object |
getObject()
Returns a managed object for accessing OSGi service(s).
|
Class<?> |
getObjectType()
Returns the managed proxy type.
|
long |
getTimeout()
Returns the timeout (in milliseconds) this importer waits while trying to find a backing service.
|
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.
|
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) |
void |
setBeanClassLoader(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 |
setSticky(boolean sticky)
Sets the stickiness of this proxy.
|
void |
setTimeout(long timeoutInMillis)
Sets how long (in milliseconds) should this importer wait between failed attempts at rebinding to a service that
has been unregistered.
|
void |
setUseBlueprintExceptions(boolean useBlueprintExceptions)
Indicates whether Blueprint exceptions are preferred over Spring DM ones.
|
getAvailability, getBeanClassLoader, getBeanName, getBundleContext, getCardinality, getContextClassLoader, getFilter, getImportContextClassLoader, getInterfaces, getListeners, getUnifiedFilter, setAvailability, setBeanName, setBundleContext, setCardinality, setContextClassLoader, setFilter, setImportContextClassLoader, setInterfaces, setListeners, setServiceBeanNamepublic void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic Object getObject()
getObject in interface org.springframework.beans.factory.FactoryBean<Object>public void setTimeout(long timeoutInMillis)
timeoutInMillis - Timeout to set, in millisecondspublic long getTimeout()
public void setSticky(boolean sticky)
sticky - sticky flagpublic void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher in interface org.springframework.context.ApplicationEventPublisherAwarepublic void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanExceptionpublic Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<Object>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<Object>public boolean isEagerInit()
isEagerInit in interface org.springframework.beans.factory.SmartFactoryBean<Object>public boolean isPrototype()
isPrototype in interface org.springframework.beans.factory.SmartFactoryBean<Object>public void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader in interface org.springframework.beans.factory.BeanClassLoaderAwaresetBeanClassLoader in class AbstractOsgiServiceImportFactoryBeanpublic void setUseBlueprintExceptions(boolean useBlueprintExceptions)
useBlueprintExceptions - public void setBlueprintCompliant(boolean compliant)
compliant - Copyright © 2006-2013. All Rights Reserved.