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
 // Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// See the License for the specific language governing permissions and
// limitations under the License.
package org.apache.tapestry.spec;
import  org.apache.hivemind.LocationHolder;
Defines an "extension", which is much like a helper bean, but is part of a library or application specification (and has the same lifecycle as the application).

public interface IExtensionSpecification extends IPropertyHolder,
    void setClassName(String className);
    void addConfiguration(String propertyNameString value);

Returns an immutable Map of the configuration; keyed on property name, with values as properties to assign.
    Map getConfiguration();

Invoked to instantiate an instance of the extension and return it. It also configures properties of the extension.
    Object instantiateExtension();

Returns true if the extensions should be instantiated immediately after the containing org.apache.tapestry.spec.LibrarySpecificationif parsed. Non-immediate extensions are instantiated only as needed.
    boolean isImmediate();
    void setImmediate(boolean immediate);
New to GrepCode? Check out our FAQ X