Modifier and Type | Class and Description |
---|---|
class |
HandlerManager
The handler manager manages an handler instance.
|
class |
InstanceManager
This class defines the container of primitive instances.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,ComponentInstance> |
IPojoFactory.m_componentInstances
The list of the managed instance managers.
|
Modifier and Type | Method and Description |
---|---|
ComponentInstance |
IPojoFactory.createComponentInstance(java.util.Dictionary configuration)
Creates an instance.
|
ComponentInstance |
Factory.createComponentInstance(java.util.Dictionary configuration)
Creates an instance manager (i.e.
|
ComponentInstance |
IPojoFactory.createComponentInstance(java.util.Dictionary configuration,
ServiceContext serviceContext)
Creates an instance in the specified service context.
|
ComponentInstance |
Factory.createComponentInstance(java.util.Dictionary configuration,
ServiceContext serviceContext)
Creates an instance manager (i.e.
|
abstract ComponentInstance |
IPojoFactory.createInstance(java.util.Dictionary config,
IPojoContext context,
HandlerManager[] handlers)
Creates an instance.
|
ComponentInstance |
HandlerManagerFactory.createInstance(java.util.Dictionary configuration,
IPojoContext context,
HandlerManager[] handlers)
Creates an instance.
|
ComponentInstance |
ComponentFactory.createInstance(java.util.Dictionary config,
IPojoContext context,
HandlerManager[] handlers)
Creates a primitive instance.
|
ComponentInstance |
Pojo.getComponentInstance()
Gets the instance container which creates the current object.
|
ComponentInstance |
IPojoFactory.getInstanceByName(java.lang.String name)
Gets a component instance created by the current factory.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<ComponentInstance> |
IPojoFactory.getInstances()
Gets the list of instances created by the factory.
|
java.util.List<ComponentInstance> |
Factory.getInstances()
Gets the list of instances created by the factory.
|
Modifier and Type | Method and Description |
---|---|
protected void |
PrimitiveHandler.attach(ComponentInstance manager)
Attaches the current handler to the given instance.
|
protected abstract void |
Handler.attach(ComponentInstance instance)
Attaches the current handler object to the given component instance.
|
void |
IPojoFactory.disposed(ComponentInstance instance)
Callback called by instance when disposed.
|
java.lang.Object |
IPOJOServiceFactory.getService(ComponentInstance instance)
Gets a service object.
|
void |
HandlerManager.init(ComponentInstance instance,
org.apache.felix.ipojo.metadata.Element metadata,
java.util.Dictionary configuration)
Creates and initializes the handler object.
|
void |
ConfigurationTracker.instanceCreated(ComponentInstance instance) |
void |
ErrorHandler.onError(ComponentInstance instance,
java.lang.String message,
java.lang.Throwable error)
Method invokes when an error occurred.
|
void |
ErrorHandler.onWarning(ComponentInstance instance,
java.lang.String message,
java.lang.Throwable error)
Method invokes when a warning occurred.
|
void |
InstanceStateListener.stateChanged(ComponentInstance instance,
int newState)
State change listener callback method.
|
void |
InstanceManager.stateChanged(ComponentInstance instance,
int newState)
State Change listener callback.
|
void |
HandlerManager.stateChanged(ComponentInstance instance,
int newState)
State Change listener callback.
|
void |
IPOJOServiceFactory.ungetService(ComponentInstance instance,
java.lang.Object svcObject)
Un-gets a service object.
|
Modifier and Type | Field and Description |
---|---|
protected ComponentInstance |
InstanceDescription.m_instance
The Underlying component instance.
|
Modifier and Type | Method and Description |
---|---|
ComponentInstance |
InstanceDescription.getInstance()
Gets the underlying component instance
|
Modifier and Type | Method and Description |
---|---|
void |
InstanceDescription.stateChanged(ComponentInstance instance,
int newState)
The underlying instance state changes.
|
Constructor and Description |
---|
InstanceDescription(ComponentTypeDescription desc,
ComponentInstance ci)
Creates the instance description.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
ServiceRegistry.getService(ComponentInstance instance,
org.osgi.framework.ServiceReference ref)
Get a service object.
|
org.osgi.framework.ServiceRegistration |
ServiceRegistry.registerService(ComponentInstance instance,
java.lang.String[] clazzes,
java.lang.Object svcObj,
java.util.Dictionary dict)
Register a service.
|
org.osgi.framework.ServiceRegistration |
ServiceRegistry.registerService(ComponentInstance instance,
java.lang.String clazz,
java.lang.Object svcObj,
java.util.Dictionary dict)
Register a service.
|
void |
ServiceRegistrationImpl.ungetService(ComponentInstance instance,
java.lang.Object srvObj)
Unget a service.
|
boolean |
ServiceRegistry.ungetService(ComponentInstance instance,
org.osgi.framework.ServiceReference ref)
Unget a service.
|
Constructor and Description |
---|
ServiceReferenceImpl(ComponentInstance instance,
ServiceRegistrationImpl ref)
Constructor.
|
ServiceRegistrationImpl(ServiceRegistry registry,
ComponentInstance instance,
java.lang.String[] classes,
java.lang.Long serviceId,
java.lang.Object svcObj,
java.util.Dictionary dict)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
ArchitectureHandler.stateChanged(ComponentInstance instance,
int newState)
The instance lifecycle listener callback.
|
Modifier and Type | Method and Description |
---|---|
void |
ConfigurationListener.configurationChanged(ComponentInstance instance,
java.util.Map<java.lang.String,java.lang.Object> configuration)
Called when the component instance is reconfigured.
|
Modifier and Type | Method and Description |
---|---|
void |
ProvidedServiceListener.serviceModified(ComponentInstance instance,
ProvidedService providedService)
Called when the registered service has been updated.
|
void |
ProvidedServiceListener.serviceRegistered(ComponentInstance instance,
ProvidedService providedService)
Called when the service has been registered.
|
void |
ProvidedServiceListener.serviceUnregistered(ComponentInstance instance,
ProvidedService providedService)
Called when the service is unregistered.
|
Modifier and Type | Method and Description |
---|---|
ComponentInstance |
DependencyModel.getComponentInstance() |
Constructor and Description |
---|
DependencyModel(java.lang.Class specification,
boolean aggregate,
boolean optional,
org.osgi.framework.Filter filter,
java.util.Comparator<org.osgi.framework.ServiceReference> comparator,
int policy,
org.osgi.framework.BundleContext context,
DependencyStateListener listener,
ComponentInstance ci)
Creates a DependencyModel.
|
Logger(org.osgi.framework.BundleContext context,
ComponentInstance instance)
Create a logger.
|
Logger(org.osgi.framework.BundleContext context,
ComponentInstance instance,
int level)
Creates a logger.
|
Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.