|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.ipojo.api.ComponentType
public abstract class ComponentType
The component type class allows specifying a new component type and its attached factory. It also allows creating instances form the specified component type.
Constructor Summary | |
---|---|
ComponentType()
|
Method Summary | |
---|---|
ComponentInstance |
createInstance()
Creates a component instance from the current type with an empty configuration. |
ComponentInstance |
createInstance(Dictionary conf)
Creates a component instance from the current type with the given configuration. |
ComponentInstance |
createInstance(String name)
Creates a component instance from the current type with the given name. |
boolean |
disposeInstance(ComponentInstance ci)
Disposes the given name. |
boolean |
disposeInstance(String name)
Disposes the instance created with this component type which has the given name. |
abstract Factory |
getFactory()
Gets the factory attached to the current component type. |
ComponentInstance |
getInstanceByName(String name)
Gets the component instance created from this component type. |
abstract void |
start()
Starts the factory attached to this component type. |
abstract void |
stop()
Stops the factory attached to this component type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ComponentType()
Method Detail |
---|
public abstract Factory getFactory()
public abstract void start()
public abstract void stop()
public ComponentInstance createInstance() throws UnacceptableConfiguration, MissingHandlerException, ConfigurationException
UnacceptableConfiguration
- the configuration is not acceptable
MissingHandlerException
- the factory in invalid
ConfigurationException
- the instance configuration failedpublic ComponentInstance createInstance(String name) throws UnacceptableConfiguration, MissingHandlerException, ConfigurationException
name
- the instance name
UnacceptableConfiguration
- the configuration is not acceptable
MissingHandlerException
- the factory in invalid
ConfigurationException
- the instance configuration failedpublic ComponentInstance createInstance(Dictionary conf) throws UnacceptableConfiguration, MissingHandlerException, ConfigurationException
conf
- the configuration
UnacceptableConfiguration
- the configuration is not acceptable
MissingHandlerException
- the factory in invalid
ConfigurationException
- the instance configuration failedpublic boolean disposeInstance(ComponentInstance ci)
ci
- the component instance to delete
true
if the instance was
successfully disposed.public ComponentInstance getInstanceByName(String name)
name
- the instance name.
null
if
the instance cannot be found.public boolean disposeInstance(String name)
name
- the name of the instance to delete.
true
is the instance is successfully disposed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |