public MetaValue buildMetaValue(String value) throws Exception { return SimpleValueSupport.wrap(value); } }
public static SimpleValue wrap(float value) { return wrap(value, float.class.getName()); } public static SimpleValue wrap(double value)
@Override public MetaValue createMetaValue(MetaType metaType, File object) { return SimpleValueSupport.wrap(object.getAbsolutePath()); }
public MetaValue buildMetaValue(String value) throws Exception { Double jvalue = Double.valueOf(value); MetaValue mvalue = SimpleValueSupport.wrap(jvalue); return mvalue; }
public static SimpleValue wrap(short value) { return wrap(value, short.class.getName()); } public static SimpleValue wrap(int value)
public MetaValue buildMetaValue(String value) throws Exception { Integer jvalue = Integer.valueOf(value); MetaValue mvalue = SimpleValueSupport.wrap(jvalue); return mvalue; }
public MetaValue buildMetaValue(String value) throws Exception { char primitive = value.charAt(0); MetaValue mvalue = SimpleValueSupport.wrap(primitive); return mvalue; }
public MetaValue buildMetaValue(String value) throws Exception { Short jvalue = Short.valueOf(value); MetaValue mvalue = SimpleValueSupport.wrap(jvalue); return mvalue; }
public MetaValue buildMetaValue(String value) throws Exception { Long jvalue = Long.valueOf(value); MetaValue mvalue = SimpleValueSupport.wrap(jvalue); return mvalue; }
public static SimpleValue wrap(char value) { return wrap(value, char.class.getName()); } public static SimpleValue wrap(short value)
public MetaValue buildMetaValue(String value) throws Exception { Float jvalue = Float.valueOf(value); MetaValue mvalue = SimpleValueSupport.wrap(jvalue); return mvalue; }
public MetaValue buildMetaValue(String value) throws Exception { Boolean jvalue = new Boolean(value); MetaValue mvalue = SimpleValueSupport.wrap(jvalue); return mvalue; }
public MetaValue buildMetaValue(String value) throws Exception { Float jvalue = Float.valueOf(value); float primitive = jvalue.floatValue(); MetaValue mvalue = SimpleValueSupport.wrap(primitive); return mvalue; }
public MetaValue buildMetaValue(String value) throws Exception { Integer jvalue = Integer.valueOf(value); int primitive = jvalue.intValue(); MetaValue mvalue = SimpleValueSupport.wrap(primitive); return mvalue; }
public MetaValue buildMetaValue(String value) throws Exception { Character jvalue = Character.valueOf(value.charAt(0)); MetaValue mvalue = SimpleValueSupport.wrap(jvalue); return mvalue; }
public MetaValue buildMetaValue(String value) throws Exception { Byte jvalue = Byte.valueOf(value); byte primitive = jvalue.byteValue(); MetaValue mvalue = SimpleValueSupport.wrap(primitive); return mvalue; }
public MetaValue buildMetaValue(String value) throws Exception { ObjectName ovalue = new ObjectName(value); String str = ovalue.getCanonicalName(); return SimpleValueSupport.wrap(str); } }
public MetaValue buildMetaValue(String value) throws Exception { Boolean jvalue = Boolean.valueOf(value); boolean primitive = jvalue.booleanValue(); MetaValue mvalue = SimpleValueSupport.wrap(primitive); return mvalue; }
public MetaValue buildMetaValue(String value) throws Exception { Double jvalue = Double.valueOf(value); double primitive = jvalue.doubleValue(); MetaValue mvalue = SimpleValueSupport.wrap(primitive); return mvalue; }
public void build(DeploymentUnit unit, Set<String> outputs, Map<String, ManagedObject> managedObjects) throws DeploymentException { JBossWebMetaData meta = unit.getAttachment(JBossWebMetaData.class); if (meta == null) return; ManagedObject mo = ManagedObjectFactory.getInstance().createManagedObject(ContextMO.class); if (mo == null) throw new DeploymentException("could not create managed object"); mo.getProperty("contextRoot").setValue(SimpleValueSupport.wrap(meta.getContextRoot())); managedObjects.put("ContextMO", mo); }