public class PrimitiveComponentType extends ComponentType
Constructor and Description |
---|
PrimitiveComponentType() |
Modifier and Type | Method and Description |
---|---|
PrimitiveComponentType |
addDependency(Dependency dep)
Adds a service dependency.
|
PrimitiveComponentType |
addDependency(TemporalDependency dep)
Adds a temporal service dependency.
|
PrimitiveComponentType |
addHandler(HandlerConfiguration handler)
Adds an HandlerConfiguration to the component type.
|
PrimitiveComponentType |
addProperty(Property prop)
Adds a configuration property.
|
PrimitiveComponentType |
addProperty(java.lang.String key,
java.lang.Object obj)
Adds a configuration property.
|
PrimitiveComponentType |
addService(Service svc)
Adds a provided service.
|
Factory |
getFactory()
Gets the component factory.
|
PrimitiveComponentType |
setBundleContext(org.osgi.framework.BundleContext bc)
Sets the bundle context.
|
PrimitiveComponentType |
setClassName(java.lang.String classname)
Sets the implementation class.
|
PrimitiveComponentType |
setComponentTypeName(java.lang.String name)
Sets the component type name.
|
PrimitiveComponentType |
setComponentTypeVersion(java.lang.String version)
Sets the component type version.
|
PrimitiveComponentType |
setFactoryMethod(java.lang.String method)
Sets the dependency factory method.
|
PrimitiveComponentType |
setImmediate(boolean immediate)
Sets if the component type is immediate or not.
|
PrimitiveComponentType |
setInvalidateMethod(java.lang.String method)
Sets the invalidate method.
|
PrimitiveComponentType |
setManagedServicePID(java.lang.String pid)
Sets the managed service pid.
|
PrimitiveComponentType |
setPropagation(boolean propagation)
Sets if the component type propagates properties to service properties.
|
PrimitiveComponentType |
setPublic(boolean visible)
Sets the factory public aspect.
|
PrimitiveComponentType |
setUpdatedMethod(java.lang.String method)
Sets the updated method.
|
PrimitiveComponentType |
setValidateMethod(java.lang.String method)
Sets the validate method.
|
void |
start()
Starts the component type.
|
void |
stop()
Stops the component type.
|
createInstance, createInstance, createInstance, disposeInstance, disposeInstance, getInstanceByName
public Factory getFactory()
getFactory
in class ComponentType
ComponentType.getFactory()
public void start()
start
in class ComponentType
ComponentType.start()
public void stop()
stop
in class ComponentType
ComponentType.stop()
public PrimitiveComponentType setBundleContext(org.osgi.framework.BundleContext bc)
bc
- the bundle contextpublic PrimitiveComponentType setClassName(java.lang.String classname)
classname
- the class namepublic PrimitiveComponentType setComponentTypeName(java.lang.String name)
name
- the factory namepublic PrimitiveComponentType setComponentTypeVersion(java.lang.String version)
version
- the factory version or "bundle" to use the
bundle version.public PrimitiveComponentType setImmediate(boolean immediate)
immediate
- true
to set the component
type to immediatepublic PrimitiveComponentType setFactoryMethod(java.lang.String method)
method
- the method used to create pojo object.public PrimitiveComponentType setPropagation(boolean propagation)
propagation
- true
to enable propagationpublic PrimitiveComponentType setPublic(boolean visible)
visible
- false
to create a private factory.public PrimitiveComponentType setManagedServicePID(java.lang.String pid)
pid
- the managed service pidpublic PrimitiveComponentType setValidateMethod(java.lang.String method)
method
- the validate methodpublic PrimitiveComponentType setInvalidateMethod(java.lang.String method)
method
- the invalidate methodpublic PrimitiveComponentType setUpdatedMethod(java.lang.String method)
method
- the updated methodpublic PrimitiveComponentType addHandler(HandlerConfiguration handler)
handler
- the handler configuration to addpublic PrimitiveComponentType addService(Service svc)
svc
- the service to addpublic PrimitiveComponentType addDependency(Dependency dep)
dep
- the dependency to addpublic PrimitiveComponentType addDependency(TemporalDependency dep)
dep
- the temporal dependency to addpublic PrimitiveComponentType addProperty(Property prop)
prop
- the property to addpublic PrimitiveComponentType addProperty(java.lang.String key, java.lang.Object obj)
key
- the keyobj
- the value (can be null
)Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.