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.spec;
 
 import  org.apache.hivemind.ClassResolver;
A Factory used by org.apache.tapestry.parse.SpecificationParser  to create Tapestry domain objects.

The default implementation here creates the expected runtime instances of classes in packages:

  • org.apache.tapestry.spec
  • org.apache.tapestry.bean

This class is extended by Spindle - the Eclipse Plugin for Tapestry

Author(s):
GWL
Since:
1.0.9
 
 
 public class SpecFactory
 {

    
Creates a concrete instance of ApplicationSpecification.
 
 
     {
         return new ApplicationSpecification();
     }

    
Creates an instance of LibrarySpecification.

Since:
2.2
 
 
     {
         return new LibrarySpecification();
     }

    
Returns a new instance of IAssetSpecification.

Since:
3.0
 
 
     {
         return new AssetSpecification();
     }

    
Creates a new instance of IBeanSpecification.

Since:
3.0
 
 
     {
         return new BeanSpecification();
     }
 
     {
         return new BindingSpecification();
     }

    
Creates a concrete instance of IComponentSpecification.
 
 
     {
         return new ComponentSpecification();
     }

    
Creates a concrete instance of IContainedComponent.
    {
        return new ContainedComponent();
    }

    
Creates a concrete instance of ParameterSpecification.
    {
        return new ParameterSpecification();
    }

    

Since:
4.0
            BindingSource source)
    {
        return new BindingBeanInitializer(source);
    }

    
Creates a concrete instance of org.apache.tapestry.spec.IExtensionSpecification.

Since:
2.2
            ClassResolver resolverValueConverter valueConverter)
    {
        return new ExtensionSpecification(resolvervalueConverter);
    }

    
Creates a concrete instance of org.apache.tapestry.spec.IPropertySpecification.

Since:
3.0
    {
        return new PropertySpecification();
    }

    

Since:
4.0
    {
        return new InjectSpecificationImpl();
    }
New to GrepCode? Check out our FAQ X