|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.ipojo.api.ComponentType
org.apache.felix.ipojo.api.PrimitiveComponentType
public class PrimitiveComponentType
Allows defining primitive component types.
Constructor Summary | |
---|---|
PrimitiveComponentType()
|
Method Summary | |
---|---|
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(String key,
Object obj)
Adds a configuration property. |
PrimitiveComponentType |
addService(Service svc)
Adds a provided service. |
Factory |
getFactory()
Gets the component factory. |
PrimitiveComponentType |
setBundleContext(BundleContext bc)
Sets the bundle context. |
PrimitiveComponentType |
setClassName(String classname)
Sets the implementation class. |
PrimitiveComponentType |
setComponentTypeName(String name)
Sets the component type name. |
PrimitiveComponentType |
setComponentTypeVersion(String version)
Sets the component type version. |
PrimitiveComponentType |
setFactoryMethod(String method)
Sets the dependency factory method. |
PrimitiveComponentType |
setImmediate(boolean immediate)
Sets if the component type is immediate or not. |
PrimitiveComponentType |
setInvalidateMethod(String method)
Sets the invalidate method. |
PrimitiveComponentType |
setManagedServicePID(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(String method)
Sets the updated method. |
PrimitiveComponentType |
setValidateMethod(String method)
Sets the validate method. |
void |
start()
Starts the component type. |
void |
stop()
Stops the component type. |
Methods inherited from class org.apache.felix.ipojo.api.ComponentType |
---|
createInstance, createInstance, createInstance, disposeInstance, disposeInstance, getInstanceByName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PrimitiveComponentType()
Method Detail |
---|
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(BundleContext bc)
bc
- the bundle context
public PrimitiveComponentType setClassName(String classname)
classname
- the class name
public PrimitiveComponentType setComponentTypeName(String name)
name
- the factory name
public PrimitiveComponentType setComponentTypeVersion(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 immediate
public PrimitiveComponentType setFactoryMethod(String method)
method
- the method used to create pojo object.
public PrimitiveComponentType setPropagation(boolean propagation)
propagation
- true
to enable propagation
public PrimitiveComponentType setPublic(boolean visible)
visible
- false
to create a private factory.
public PrimitiveComponentType setManagedServicePID(String pid)
pid
- the managed service pid
public PrimitiveComponentType setValidateMethod(String method)
method
- the validate method
public PrimitiveComponentType setInvalidateMethod(String method)
method
- the invalidate method
public PrimitiveComponentType setUpdatedMethod(String method)
method
- the updated method
public PrimitiveComponentType addHandler(HandlerConfiguration handler)
handler
- the handler configuration to add
public PrimitiveComponentType addService(Service svc)
svc
- the service to add
public PrimitiveComponentType addDependency(Dependency dep)
dep
- the dependency to add
public PrimitiveComponentType addDependency(TemporalDependency dep)
dep
- the temporal dependency to add
public PrimitiveComponentType addProperty(Property prop)
prop
- the property to add
public PrimitiveComponentType addProperty(String key, Object obj)
key
- the keyobj
- the value (can be null
)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |