|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.hivemind.impl.BaseLocatable org.apache.hivemind.impl.ModuleImpl
public final class ModuleImpl
Implementation of Module
.
Constructor Summary | |
---|---|
ModuleImpl()
|
Method Summary | |
---|---|
boolean |
containsService(java.lang.Class serviceInterface)
Returns true if a single service exists which implements the specified service interface and is visible to this module. |
ClassResolver |
getClassResolver()
Returns the resource resolver for this module. |
java.lang.Object |
getConfiguration(java.lang.String extensionPointId)
Returns the container for the specified configuration point. |
ErrorHandler |
getErrorHandler()
Returns the ErrorHandler for this Registry. |
java.util.Locale |
getLocale()
|
Messages |
getMessages()
Returns an object that can provide and format localized messages for this module. |
java.lang.String |
getModuleId()
Returns the unique identifier for this module. |
RegistryInfrastructure |
getRegistry()
|
java.lang.Object |
getService(java.lang.Class serviceInterface)
Finds a service that implements the provided interface. |
java.lang.Object |
getService(java.lang.String serviceId,
java.lang.Class serviceInterface)
Looks up the ServicePoint (throwing an exception if not found) and invokes
ServicePoint.getService(Class) . |
ServiceModelFactory |
getServiceModelFactory(java.lang.String name)
|
ServicePoint |
getServicePoint(java.lang.String serviceId)
Returns the identified service extension point. |
java.lang.Class |
resolveType(java.lang.String type)
Returns the class matching the type. |
void |
setClassResolver(ClassResolver resolver)
|
void |
setModuleId(java.lang.String string)
|
void |
setPackageName(java.lang.String packageName)
|
void |
setRegistry(RegistryInfrastructure registry)
|
java.lang.String |
toString()
|
Methods inherited from class org.apache.hivemind.impl.BaseLocatable |
---|
getLocation, setLocation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.hivemind.Locatable |
---|
getLocation |
Constructor Detail |
---|
public ModuleImpl()
Method Detail |
---|
public java.lang.Object getConfiguration(java.lang.String extensionPointId)
Module
getConfiguration
in interface Module
extensionPointId
- an unqualified id for a configuration within this module, or a fully qualified id
for a configuration in this or any other modulepublic java.lang.String getModuleId()
Module
getModuleId
in interface Module
public void setPackageName(java.lang.String packageName)
public boolean containsService(java.lang.Class serviceInterface)
Module
containsService
in interface Module
public java.lang.Object getService(java.lang.String serviceId, java.lang.Class serviceInterface)
Module
ServicePoint
(throwing an exception if not found) and invokes
ServicePoint.getService(Class)
.
getService
in interface Module
serviceId
- an unqualified id for a service within this module, or a fully qualified id for a
service in this or any other moduleserviceInterface
- type the result will be cast topublic java.lang.Object getService(java.lang.Class serviceInterface)
Module
getService
in interface Module
serviceInterface
- used to locate the servicepublic void setModuleId(java.lang.String string)
public void setRegistry(RegistryInfrastructure registry)
public void setClassResolver(ClassResolver resolver)
public ClassResolver getClassResolver()
Module
getClassResolver
in interface Module
public Messages getMessages()
Module
hivemodule.properties
(localized) stored
with the HiveMind deployment descriptor in the META-INF folder.
getMessages
in interface Module
public java.lang.String toString()
toString
in class java.lang.Object
public ServicePoint getServicePoint(java.lang.String serviceId)
Module
getServicePoint
in interface Module
serviceId
- an unqualified id for a service within this module, or a fully qualified id for a
service in this or any other modulepublic ServiceModelFactory getServiceModelFactory(java.lang.String name)
getServiceModelFactory
in interface Module
RegistryInfrastructure.getServiceModelFactory(String)
public java.util.Locale getLocale()
getLocale
in interface Module
Registry.getLocale()
public ErrorHandler getErrorHandler()
Module
ErrorHandler
for this Registry.
getErrorHandler
in interface Module
public java.lang.Class resolveType(java.lang.String type)
Module
resolveType
in interface Module
type
- the Java type to convert into a class. May be a primitive type, or an array of
objects or primitives.
Class
object.public RegistryInfrastructure getRegistry()
getRegistry
in interface Module
Module.getRegistry()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |