|
||||||||||
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) and a synthetic interface is generated where appropriate. |
Occurances |
getParametersCount()
Returns the number of parameter object expected; generally this is the default of exactly one ( Occurances.REQUIRED ). |
Schema |
getParametersSchema()
Returns the 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 |
---|
java.lang.Class getServiceInterface()
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).
org.apache.tapestry.ApplicationRuntimeException
- if there is any problem creating the service.Schema getParametersSchema()
Schema
used to process any parameters passed to the service. Service
implementation factories and service interceptor factories allow parameters.
Occurances getParametersCount()
Occurances.REQUIRED
).
void forceServiceInstantiation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |