diff --git a/impl/src/main/java/org/jboss/weld/extensions/core/CoreExtension.java b/impl/src/main/java/org/jboss/weld/extensions/core/CoreExtension.java index 510fa20..2901030 100644 --- a/impl/src/main/java/org/jboss/weld/extensions/core/CoreExtension.java +++ b/impl/src/main/java/org/jboss/weld/extensions/core/CoreExtension.java @@ -39,6 +39,8 @@ import org.jboss.weld.extensions.annotated.AnnotationRedefiner; import org.jboss.weld.extensions.annotated.RedefinitionContext; import org.jboss.weld.extensions.bean.BeanBuilder; +import org.jboss.weld.extensions.literal.InjectLiteral; +import org.jboss.weld.extensions.literal.NamedLiteral; /** * Extension to install the "core" extensions. Core extensions are those that diff --git a/impl/src/main/java/org/jboss/weld/extensions/core/DefaultLiteral.java b/impl/src/main/java/org/jboss/weld/extensions/core/DefaultLiteral.java deleted file mode 100644 index a5d2e4c..0000000 --- a/impl/src/main/java/org/jboss/weld/extensions/core/DefaultLiteral.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * JBoss, Home of Professional Open Source - * Copyright 2010, Red Hat, Inc., and individual contributors - * by the @authors tag. See the copyright.txt in the distribution for a - * full listing of individual contributors. - * - * 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.jboss.weld.extensions.core; - -import javax.enterprise.inject.Default; -import javax.enterprise.util.AnnotationLiteral; - -class DefaultLiteral extends AnnotationLiteral implements Default -{ - - private static final long serialVersionUID = 2768505716290514234L; - - static final Default INSTANCE = new DefaultLiteral(); - - private DefaultLiteral() {} - -} \ No newline at end of file diff --git a/impl/src/main/java/org/jboss/weld/extensions/core/InjectLiteral.java b/impl/src/main/java/org/jboss/weld/extensions/core/InjectLiteral.java deleted file mode 100644 index aed84f0..0000000 --- a/impl/src/main/java/org/jboss/weld/extensions/core/InjectLiteral.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * JBoss, Home of Professional Open Source - * Copyright 2010, Red Hat, Inc., and individual contributors - * by the @authors tag. See the copyright.txt in the distribution for a - * full listing of individual contributors. - * - * 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.jboss.weld.extensions.core; - -import javax.enterprise.util.AnnotationLiteral; -import javax.inject.Inject; - -class InjectLiteral extends AnnotationLiteral implements Inject -{ - - private static final long serialVersionUID = 817936051028981316L; - - static final Inject INSTANCE = new InjectLiteral(); - - private InjectLiteral() {} - -} \ No newline at end of file diff --git a/impl/src/main/java/org/jboss/weld/extensions/core/NamedLiteral.java b/impl/src/main/java/org/jboss/weld/extensions/core/NamedLiteral.java deleted file mode 100644 index f0ee303..0000000 --- a/impl/src/main/java/org/jboss/weld/extensions/core/NamedLiteral.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * JBoss, Home of Professional Open Source - * Copyright 2010, Red Hat, Inc., and individual contributors - * by the @authors tag. See the copyright.txt in the distribution for a - * full listing of individual contributors. - * - * 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.jboss.weld.extensions.core; - -import javax.enterprise.util.AnnotationLiteral; -import javax.inject.Named; - -class NamedLiteral extends AnnotationLiteral implements Named -{ - private static final long serialVersionUID = 2239690880420187044L; - final String name; - - NamedLiteral(String name) - { - this.name = name; - } - - public String value() - { - return name; - } -} \ No newline at end of file