package com.tobedevoured.modelcitizen.blueprint;
import com.tobedevoured.modelcitizen.annotation.Blueprint;
import com.tobedevoured.modelcitizen.annotation.Default;
import com.tobedevoured.modelcitizen.callback.ConstructorCallback;
import com.tobedevoured.modelcitizen.model.SpareTire;
import com.tobedevoured.modelcitizen.model.Wheel;
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you 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.
*/
@Blueprint(SpareTire.class)
public class SpareTireBlueprint extends WheelBlueprint {
@Default
public Integer mileLimit = 400;
@Default
public Integer size = 9;
ConstructorCallback constructor = new ConstructorCallback() {
@Override
public Object createInstance() {
SpareTire spareTire = new SpareTire("spare tire name");
return spareTire;
}
};
}