|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.evermind.server.deployment.ContextScanningResourceProvider
public class ContextScanningResourceProvider
A ResourceProvider implementation that acts on a generic JNDI namespace, useful for providers who supply a namespace access mechanism.
The properties are those of the namespace, save two special properties:
resource.names - An optional comma separated list of resource locations (JNDI names) that are to be exposed. Useful if the context doesnt support browsing (.list(...)).
resource.types - An optional comma separated list of resource types that are to be handled, useful if you dont want to use all the resources from the provider (for instance if hooking up to a foreign app-server's namespace and just wanting to use the JMS resources, ie ignoring DataSources).
| Constructor Summary | |
|---|---|
ContextScanningResourceProvider()
|
|
| Method Summary | |
|---|---|
ResourceInfo |
getDefaultResource(java.lang.String type)
Get the default identifier for a specific resource type if any instance is provided of that type through this provider. |
java.lang.String |
getDescription()
Returns a description of the provider or null if not specified. |
java.lang.String |
getDisplayName()
Returns the display-friendly name of the provider. |
java.util.Set |
getHandledTypes()
Returns a Set of handled resource types, or null if not specified (in which case the assumption is that all are handled). |
java.lang.String |
getName()
Gets the name of this provider instance. |
EnvironmentPropertyDescription[] |
getPropertyDescriptions()
Returns a list of valid properties for this provider or null if not specified. |
java.lang.Object |
getResource(java.lang.String name)
Returns the actual resource for this name. |
java.util.Set |
getResources(java.lang.String type)
Returns a Set of all available resources of this type in this provider. |
void |
init(java.util.Map properties)
Initializes the provider with the specified properties, the Map contains the property names as keys and property values as values. |
void |
setName(java.lang.String name)
Sets the name of this provider instance. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContextScanningResourceProvider()
| Method Detail |
|---|
public EnvironmentPropertyDescription[] getPropertyDescriptions()
ResourceProvider
getPropertyDescriptions in interface ResourceProvider
public void init(java.util.Map properties)
throws java.lang.InstantiationException
ResourceProvider
init in interface ResourceProviderjava.lang.InstantiationExceptionpublic java.lang.String getDisplayName()
ResourceProvider
getDisplayName in interface ResourceProviderpublic java.lang.String getDescription()
ResourceProvider
getDescription in interface ResourceProviderpublic java.lang.String getName()
ResourceProvider
getName in interface ResourceProviderpublic void setName(java.lang.String name)
ResourceProvider
setName in interface ResourceProviderpublic java.util.Set getHandledTypes()
ResourceProvider
getHandledTypes in interface ResourceProviderpublic ResourceInfo getDefaultResource(java.lang.String type)
ResourceProvider
getDefaultResource in interface ResourceProviderpublic java.util.Set getResources(java.lang.String type)
ResourceProvider
getResources in interface ResourceProvider
public java.lang.Object getResource(java.lang.String name)
throws java.lang.InstantiationException
ResourceProvider
getResource in interface ResourceProviderjava.lang.InstantiationException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||