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 java.util.List;
 
A specification of a helper bean for a component.

Author(s):
Howard Lewis Ship
Since:
1.0.4
 
 
 public class BeanSpecification extends LocatablePropertyHolder implements IBeanSpecification
 {
     protected String _className;
 
     protected BeanLifecycle _lifecycle;

    
 
 
     protected List _initializers;

    

Since:
1.0.9 *
 
     private String _description;

    

Since:
4.0
 
 
     private String _propertyName;
     
     public String getClassName()
     {
         return ;
     }
 
     public BeanLifecycle getLifecycle()
     {
         return ;
     }

    

Since:
1.0.5
 
 
     public void addInitializer(IBeanInitializer initializer)
     {
         if ( == null)
              = new ArrayList();
 
         .add(initializer);
     }

    
Returns the java.util.Listof org.apache.tapestry.bean.IBeanInitializers. The caller should not modify this value!. May return null if there are no initializers.

Since:
1.0.5
 
 
     public List getInitializers()
     {
         return ;
     }
 
     public String toString()
     {
         StringBuffer buffer = new StringBuffer("BeanSpecification[");
 
         buffer.append();
         buffer.append(", lifecycle ");
         buffer.append(.getName());
 
         if ( != null && .size() > 0)
         {
             buffer.append(", ");
             buffer.append(.size());
             buffer.append(" initializers");
         }
 
         buffer.append(']');
 
         return buffer.toString();
    }
    public String getDescription()
    {
        return ;
    }
    public void setDescription(String desc)
    {
         = desc;
    }

    

Since:
3.0 *
    public void setClassName(String className)
    {
        this. = className;
    }

    

Since:
3.0 *
    public void setLifecycle(BeanLifecycle lifecycle)
    {
        this. = lifecycle;
    }

    

Since:
4.0
    public String getPropertyName()
    {
        return ;
    }

    

Since:
4.0
    public void setPropertyName(String propertyName)
    {
         = propertyName;
    }
New to GrepCode? Check out our FAQ X