|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IComponentDescriptor
The Component Descriptor provides access to meta data as provided by
component repositories (IComponentsRepository without requiring download of further component
resources or other processing.
A Component Descriptor can be retrieved by calling IComponentsRepository.getComponent(String) or
by a component lookup passing this interface as expected result type:
IComponentsLookup.INSTANCE.lookup(<component name>,IComponentDescriptor.class);
Component metadata is provided as properties in the format of a Properties properties file. At least such property file should
declare a component type:
com.zfabrik.component.type=<component type>For example
com.zfabrik.component.type=com.zfabrik.javawould define a Java component.
IComponentsRepository,
IComponentsLookup| Field Summary | |
|---|---|
static java.lang.String |
COMPONENT_CLZ
The class name of the component implementation. |
static java.lang.String |
COMPONENT_NAME
The name of the component. |
static java.lang.String |
COMPONENT_TYPE
The type of a component. |
static java.lang.String |
DEPENDENCIES
Components declare dependency on other components by specifying a comma-separated list of component names. |
static java.lang.String |
STATES_DEPENDENCY
Deprecated. Use DEPENDENCIES instead. |
| Method Summary | |
|---|---|
java.lang.String |
getName()
Gets the name of the component. |
java.util.Properties |
getProperties()
Get the properties of this component |
java.lang.String |
getProperty(java.lang.String name)
Just a short hand for getProperties().getProperty(String) |
long |
getRevision()
Get the revision of the component. |
java.lang.String |
getType()
Gets the type of the component. |
| Field Detail |
|---|
static final java.lang.String COMPONENT_NAME
static final java.lang.String COMPONENT_TYPE
com.zfabrik.java for a Java component.
static final java.lang.String COMPONENT_CLZ
static final java.lang.String STATES_DEPENDENCY
DEPENDENCIES instead.
static final java.lang.String DEPENDENCIES
IDependencyComponent and correspondingly
invoked. The declaring component will be dependent on all declared dependency components
| Method Detail |
|---|
java.lang.String getName()
java.lang.String getType()
getProperty(COMPONENT_TYPE).
long getRevision()
java.util.Properties getProperties()
java.lang.String getProperty(java.lang.String name)
getProperties().getProperty(String)
name -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||