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.
tapestry.enhance.ComponentConstructorFactory service that acts as a wrapper around org.apache.tapestry.enhance.EnhancementOperation, used to take a base component class and provide an enhanced subclass of it.

Howard M. Lewis Ship
Passed a component specification and the base component class name, provides back an object used to instantiate instances of the component. ComponentConstructors are internally cached, repeated calls with the same specification object will yield the same result.

specification the page or component specification which directs the enhancement operation
className the name of the base component class (in some cases, org.apache.tapestry.spec.IComponentSpecification.getComponentClassName() is null andother code provides the default)
a constructor used to create instances of the enhanced component class
            String className);
New to GrepCode? Check out our FAQ X