Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 // Copyright 2004, 2005 The Apache Software Foundation
 //
 // Licensed under the Apache License, Version 2.0 (the "License");
 // you may not use this file except in compliance with the License.
 // You may obtain a copy of the License at
 //
 //     http://www.apache.org/licenses/LICENSE-2.0
 //
 // Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package org.apache.tapestry.services;
Service interface for tapestry.services.ServiceMap, provides access to engine services defined in the HiveMind module deployment descriptors.

Note: In Tapestry 3.0 and earlier, a <service> element in the application and library specifications was used to define services. This is no longer supported.

Author(s):
Howard Lewis Ship
Since:
4.0
public interface ServiceMap
{
    
Returns the named service.

Parameters:
name the unique name for the service, as defined by each service instance's org.apache.tapestry.engine.IEngineService.getName() method.
Throws:
org.apache.hivemind.ApplicationRuntimeException if the named service does not exist
Returns:
the named service
    IEngineService getService(String name);

    
Returns true if the name is a known service, or false otherwise.
    boolean isValid(String name);
New to GrepCode? Check out our FAQ X