This method typically examines the plugin configuration from {@link ResourceContext#getPluginConfiguration()}and uses that information to connect to the managed resource. If this method finds that the plugin configuration is invalid which causes the connection to the managed resource to fail, then this method should throw {@link InvalidPluginConfigurationException}. This exception typically should not be thrown if the connection failed for some reason other than an invalid plugin configuration (e.g. in the case the managed resource is simply not running now) because usually those conditions can be tracked as part of the resource's {@link AvailabilityFacet#getAvailability() availability} data.
Note that this method does not imply that the actual managed resource should be started; this only starts the plugin's resource component. To start the actual resource, plugins must utilize the {@link OperationFacet} facet to provide an operation to start it.
@param context the context for this resource which includes information about the resource @throws InvalidPluginConfigurationException if the resource component failed to start because it could notconnect to the resource due to a bad plugin configuration @throws Exception any other exception that causes the component to fail to start
|
|
|
|
|
|
|
|
|
|
|
|