|
|||||||||
| Home >> All >> org >> apache >> hivemind >> [ internal overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.hivemind.internal
Interface ServicePoint

- All Superinterfaces:
- ExtensionPoint, org.apache.hivemind.Locatable
- public interface ServicePoint
- extends ExtensionPoint
Sub-interface of ExtensionPoint that defines a service extension point. A service may have a single factory contribution, and any number of interceptor contributions.
| Method Summary | |
void |
forceServiceInstantiation()
Forces the service to be fully instantiated immediately, rather than lazily. |
java.lang.Class |
getDeclaredInterface()
Returns the interface for the service as specified in the descriptor; starting with release 1.1 it is possible to define a service in terms of a class (as the interface) and a synthetic interface is generated where appropriate. |
org.apache.hivemind.Occurances |
getParametersCount()
Returns the number of parameter object expected; generally this is the default of exactly one ( Occurances.REQUIRED> Occurances.REQUIRED 55 ). |
org.apache.hivemind.schema.Schema |
getParametersSchema()
Returns the org.apache.hivemind.schema.Schema used to process any parameters passed to the service. |
java.lang.Object |
getService(java.lang.Class interfaceClass)
Obtains the full service implementation for this service extension point, an object that implements the service interface. |
java.lang.Class |
getServiceInterface()
Returns the type of the service, the interface the service implements. |
java.lang.String |
getServiceInterfaceClassName()
Returns the fully qualified class name of the service interface. |
| Methods inherited from interface org.apache.hivemind.internal.ExtensionPoint |
getErrorLog, getExtensionPointId, getLog, getModule, visibleToModule |
| Methods inherited from interface org.apache.hivemind.Locatable |
getLocation |
| Method Detail |
getServiceInterface
public java.lang.Class getServiceInterface()
- Returns the type of the service, the interface the service implements. This may be a
synthetic interface when the interface for the service point is, in fact, a class.
getDeclaredInterface
public java.lang.Class getDeclaredInterface()
- Returns the interface for the service as specified in the descriptor; starting with release
1.1 it is possible to define a service in terms of a class (as the interface) and a synthetic
interface is generated where appropriate.
- Since:
- 1.1
getServiceInterfaceClassName
public java.lang.String getServiceInterfaceClassName()
- Returns the fully qualified class name of the service interface. This is useful so that
loading the actual service interface class can be deferred as late as possible. This is the
value, as specified in the descriptor (except that simple names in the descriptor are
prefixed with the module's package name). Starting in release 1.1, this may be the name of a
ordinary class, not an interface.
- Since:
- 1.1
getService
public java.lang.Object getService(java.lang.Class interfaceClass)
- Obtains the full service implementation for this service extension point, an object that
implements the service interface. Because of the different service models, and because of the
possibility of interceptors, the exact class and object returned can't be specified (and may
vary at different times), but that is not relevant to client code, which is assured that it
can invoke the service methods defined by the service interface.
getParametersSchema
public org.apache.hivemind.schema.Schema getParametersSchema()
- Returns the org.apache.hivemind.schema.Schema used to process any parameters passed to the service. Service
implementation factories and service interceptor factories allow parameters.
getParametersCount
public org.apache.hivemind.Occurances getParametersCount()
- Returns the number of parameter object expected; generally this is the default of exactly one (
Occurances.REQUIRED>
Occurances.REQUIRED55 ).
forceServiceInstantiation
public void forceServiceInstantiation()
- Forces the service to be fully instantiated immediately, rather than lazily.
|
|||||||||
| Home >> All >> org >> apache >> hivemind >> [ internal overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC