|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServicePoint
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). |
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. |
ServicePointDefinition |
getServicePointDefinition()
|
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 |
---|
java.lang.Class getServiceInterface()
getDeclaredInterface()
if the declared interface
is a real interface and not a class.
java.lang.Class getDeclaredInterface()
java.lang.String getServiceInterfaceClassName()
java.lang.Object getService(java.lang.Class interfaceClass)
interfaceClass
- the class that the service will be cast to; a check is made that the service is
assignable to the indicated interface. It does not have to, necessarily, match the
service interface (it could be a super-interface, for example).
ApplicationRuntimeException
- if there is any problem creating the service.void forceServiceInstantiation()
ServicePointDefinition getServicePointDefinition()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |